[Contribution] Additional Images Module
#1441
Posted 31 October 2010 - 11:14 PM
I have a problem with the modified contribution Additional Images for STS content pages - Version 1.
I see the tags $imageblock1$, $imageblock2$, $imageblock3$, $imageblock4$ instead of the images.
I installed, as the setup txt file instructs the addons Additional Images version 2.1.0 and STS version 4.5.8 (and I used these older versions just because they were tested). I followed all instructions in all addons very carefully.
Everything works fine except of course the imageblocks. Lightbox is working fine, I can add more than one image in products but I can see only the first image.
I read in previous pages in this thread that someone had the same problem, but there wasn't any solution.
Can someone please help me?
Thanks in advance
George
#1442
Posted 05 November 2010 - 09:51 AM
I thought this addon was better supported.
#1443
Posted 05 November 2010 - 11:01 AM
web2dev, on 05 November 2010 - 09:51 AM, said:
I thought this addon was better supported.
Well, I'm sorry that the customer service is that slow
I can not reproduce your situation, since everything works fine for me (also with STS 4.6), so maybe some more info from your side will help.
1) Did you add the code to file includes/modules/sts_inc/product_info.php? (I guess yes)
2) Do you use a atg (ie $imageblock1$) in a CONTENT template of product_info.php.html?
3) What do you see on the screen instead of the images? The tag name?
4) What tag do you use to get the first product image into the template
5) How are you admin settings for additional images?
#1444
Posted 05 November 2010 - 01:34 PM
multimixer, on 05 November 2010 - 11:01 AM, said:
I can not reproduce your situation, since everything works fine for me (also with STS 4.6), so maybe some more info from your side will help.
1) Did you add the code to file includes/modules/sts_inc/product_info.php? (I guess yes)
2) Do you use a atg (ie $imageblock1$) in a CONTENT template of product_info.php.html?
3) What do you see on the screen instead of the images? The tag name?
4) What tag do you use to get the first product image into the template
5) How are you admin settings for additional images?
Hi, thanks for the reply.
1. yes, I copied both changes from installation.txt and I just checked product_info.php from the addon folder and from the eshop folder and they are the same.
2. I used all tags $imageblock1$, $imageblock2$, $imageblock3$, $imageblock4$ to see how they appear and to test it and I used it on includes/sts_templates/full/content/product_info.php.html
3. I see the tags $imageblock1$, $imageblock2$, $imageblock3$ and $imageblock4$. Only these tags appear, the rest tags work fine ($additionalpopsmall$, $mainimagepop$, $additionalpopsmall$, $additionalpopmed$, $mainimagebig$, $mainimagemed$, $mainimagesmall$ <-- these work fine).
4. I guess you mean the $additionalpopsmall$ tag? This is the first I see.
5.
Automatically create 3 image set true
Background color
Pre-fill upload dir w/ Category names true
Pre-fill starting with this sub-dir products
Use image size restrictions false
Product Info: Show Additional Images true
Product Info: Product Image Behavior popup
Product Info: Group parent with sub-images false
Product Info: Restrict parent image size true
Product Info: Table alignment center
Product Info: Table location below
Product Info: Number of columns 3
Product Info: Number of rows 2
Popup: Show Thumbnail Menu true
Thumb Menu: Show parent image true
Thumb Menu: Use image size restrictions false
Thumb Menu: Table alignment center
Thumb Menu: Table location below
Thumb Menu: Number of columns 3
Thumb Menu: Number of rows 2
Lightbox effect true
These are the settings you want, right?
In general I haven't changed anything in the original product_info.php.html from sts 4.6.1 except the addition of the Additional images tags.
thanks again.
george
#1445
Posted 05 November 2010 - 02:10 PM
web2dev, on 05 November 2010 - 01:34 PM, said:
No, I mean, do you see the $tag$ name, like $imageblock1$ on th screen, or just nothing?
Try to change following admin setting -> Product Info: Product Image behavior popup
to be -> Product Info: Product Image behavior product_info
and tell me what happens.
Edited by multimixer, 05 November 2010 - 02:10 PM.
#1446
Posted 05 November 2010 - 02:51 PM
multimixer, on 05 November 2010 - 02:10 PM, said:
Try to change following admin setting -> Product Info: Product Image behavior popup
to be -> Product Info: Product Image behavior product_info
and tell me what happens.
Hi again,
just to clarify...
You ask:
3) What do you see on the screen instead of the images? The tag name?
I answer:
3. I see the tags $imageblock1$, $imageblock2$, $imageblock3$ and $imageblock4$. Only these tags appear, the rest tags work fine ($additionalpopsmall$, $mainimagepop$, $additionalpopsmall$, $additionalpopmed$, $mainimagebig$, $mainimagemed$, $mainimagesmall$ <-- these work fine).
You ask:
4) What tag do you use to get the first product image into the template
I answer:
4. I guess you mean the $additionalpopsmall$ tag? This is the first I see.
So you probably mixed my answers for 3 and 4.
AND YES...THANK YOU
that did the trick...changed it to Product Info: Product Image behavior product_info and it now works fine
thank you very much again!!
george
Edited by web2dev, 05 November 2010 - 02:55 PM.
#1447
Posted 05 November 2010 - 03:00 PM
web2dev, on 05 November 2010 - 02:51 PM, said:
that did the trick...changed it to Product Info: Product Image behavior product_info and it now works fine
Yes, I see now that I mixed up in the hurry.
Glad anyway that it works, I just checked and see that in includes/modules/sts_inc/product_info.php, over ie imageblock1 it is stated
Quote
$template_pinfo['imageblock1'] = $imagemenu->groupoutput();
Maybe it's not clear enough, if I have time one day I'll write better instructions and make some better tags
#1448
Posted 05 November 2010 - 03:42 PM
multimixer, on 05 November 2010 - 03:00 PM, said:
Glad anyway that it works, I just checked and see that in includes/modules/sts_inc/product_info.php, over ie imageblock1 it is stated
Maybe it's not clear enough, if I have time one day I'll write better instructions and make some better tags
Oo, really sorry then, since that's the case, because after so many times reading the files to see if anything was wrong when I copied the lines I never noticed that.
But, since this whole mixed-addons addon is for additional images on sts with lightbox why don't you set default behavior for the Product Info: Product Image behavior to be product_info?
Just saying as an idea, but please be lenient with me, since I'm not an advanced programmer in php and maybe my idea is not applicable.
thanks again
george
#1449
Posted 05 November 2010 - 05:01 PM
web2dev, on 05 November 2010 - 03:42 PM, said:
But, since this whole mixed-addons addon is for additional images on sts with lightbox why don't you set default behavior for the Product Info: Product Image behavior to be product_info?
Everything is fine, I just thought maybe the "instruction line" was not there.
Why I don't set a default behavior? Because I think each one should have the choice, also possible that you want to use this, having the additional images in the pop up.There are other scripts available where you can have the a whole galerry in a lightbox style pop up etc etc
#1450
Posted 06 November 2010 - 12:32 AM
#1451
#1452
Posted 07 November 2010 - 05:20 PM
Can someone please help me on something else as well?
I'm still a novice in php.
I want the product_reviews_info.php and the product_reviews.php to be able to show the image popup using lightbox.
I don't want to create sts template for these two pages.
How do I edit the following code (which is the same for both files) in order to view the big image when click to enlarge or the thumbnail is clicked?
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
I have already added the js and css declarations in the head section.
thanks in advance
George
#1453
Posted 05 December 2010 - 11:20 PM
http://natrlobs.sc22.info/product_info.php?cPath=26&products_id=29 <--the good page
http://natrlobs.sc22.info/product_info.php?cPath=23&products_id=32 <---the "bad" page
On both pages, the "large" version of the image is being called, but on the good page, the javascript is rewriting the image to be 200px, and on the bad page, it's rewriting it as 60 px. Why???
#1454
Posted 05 December 2010 - 11:27 PM
http://natrlobs.sc22.info/images/Sprucem.jpg <--Medium-sized image, correct size
http://natrlobs.sc22.info/images/products/silk-and-milk/IMG_0711m.jpg <--also medium image, improperly sized.
Can anyone tell me where I've gone wrong in my set-up to cause these resizes to be so far off? Thanks!!
#1455
Posted 06 January 2011 - 05:34 AM
I just installed this contribution on my test site and have a couple of problems.
1. All of my product_info main images are not showing up unless I add a second image. Once I add a second image as the "Thumb or Single Large Image" then the original image and the second image show up correctly. But I'd like to have all my images show up without doing this in case there is no alternate image needed.
2. when I add a second image to the "Products Info Image" instead of the "Thumb or Single Large Image" the image is just a shrunken version of the main image no matter what I choose.
Any idea on what could be causing this?
#1456
Posted 16 January 2011 - 12:13 PM
As i am upgrading my site slowly to 2.3.1, i was wondering if anyone with more skills than me, is trying to get the funcionallity of this contribution to work with this new version. I am looking for something that will create thumbnails and automatically store them is a sensible place within the image directory.
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#1457
Posted 27 February 2011 - 04:24 PM
It's exactly what I need. I'm not sure if I'm not setting something properly or if it's not setup to do this. My product listing images are larger than most people display in the listing...they are 150x200. My problem is that on the product info page, that same "small image" setting is used for the thumbnails.
Is there a way to have a separate setting for the thumbnails size (I'm wanting 75x100) so that they can be much smaller on the product info page than the size on the product listing page?
Since this contribution says three size for images, I'm thinking it might be not having a setting correct.
Thanks in advance for any help
Edited by Dianna668, 27 February 2011 - 04:26 PM.
#1458
Posted 04 April 2011 - 09:54 PM
Essentially i am able to get the options in the admin/back-end to show up correctly complete with the 3 upload boxes for the various images. My problem is after merging the files from teh installation package with those of which i already had (on the server), once i upload the new files to my shop i start getting errors on the front end (none on the back end)... specifically the following:
______________________
Warning: require(includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /path_to/includes/application_top.php on line 76
Fatal error: require() [function.require]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /path_to/includes/application_top.php on line 76
______________________
Im just not sure how to resolve this... I checked my original installation and i DID have a file called logger.php located exactly where it is being called.
Any ideas???
Im running OSC v 2.2rc2
Thank you in advance,
Iain
Edited by Jan Zonjee, 17 January 2012 - 05:45 PM.
#1459
Posted 05 April 2011 - 03:43 PM
itscoldoutside, on 04 April 2011 - 09:54 PM, said:
Essentially i am able to get the options in the admin/back-end to show up correctly complete with the 3 upload boxes for the various images. My problem is after merging the files from teh installation package with those of which i already had (on the server), once i upload the new files to my shop i start getting errors on the front end (none on the back end)... specifically the following:
______________________
Warning: require(includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /path_to/includes/application_top.php on line 76
Fatal error: require() [function.require]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /path_to/includes/application_top.php on line 76
______________________
Im just not sure how to resolve this... I checked my original installation and i DID have a file called logger.php located exactly where it is being called.
Any ideas???
Im running OSC v 2.2rc2
Thank you in advance,
Iain
Bit of an update on my issue, or rather some clarification. I just wiped the store, installed a fresh copy of OSC 2.2rc2 and then before making any changes outside of general configuration (store name etc) i installed this module. Once again, everything in the backend is working fine and the module appears to have been installed correctly. Front end issues persist and am stuck with the same error as mentioned above.
As the installation guide is somewhat vague in regard to how to merge the files using windif what i did exactly is as follows:
Compared the files in the module against those on my server, merged the two and uploaded again to the server.
Did i do something wrong? Outside of the above, im not sure what else to do.
Thank you in advance for your help here!!
Edited by Jan Zonjee, 17 January 2012 - 05:46 PM.
#1460
Posted 05 April 2011 - 04:49 PM
This time there is no error on line 76 and the front end is loading, at least some what. The problem now is the layout of the store is a total mess and only gets worse when i click into one of the prepopulated test products...
www.citywideappliance.ca/e-store
Any ideas?









