![]() |
wrap it with
Code:
{if $images[1].image} |
Thanks, Shan, worked like a charm! For the information of others following this thread, I wrapped Shan's code around the following line in customer/main/product.tpl:
{include file="modules/Detailed_Product_Images/product_images.tpl" } Now here's another question for Shan or any other expert. If I have no image at all, how do I get the "no image" graphic to appear? Right now it's blank (where the first detailed image goes, which is where the thumbnail used to be). I really appreciate the help! |
try
Code:
{if $images eq ""} |
Hmmm, I can't seem to get this last bit (the code to show the "no image" image) to work. I've tried inserting it in a couple of places, now the "no image" image always shows up (if there already is a detailed image, now it shows up along with the "no image" one).
Am I trying it in the wrong place? I'm assuming it should somehow go in the modules/detailed_product_images called product_images_one.tpl somewhere. (Lightspeed posted this code in the opening message of this thread.) Again, thanks for your help! I'm awed by the quick and kind responses in this forum. |
sorry, i put
$image instead of $images i updated my other post |
Works great now. Thanks for the great mod and the great help getting it up and running!
|
|
If in your product.tpl you want to show the thumbnail when there is not detailed images, use:
Code:
{if $active_modules.Detailed_Product_Images ne "" && $images ne ""} |
In my detailed images it still showed the first detailed image in the detailed section below, after using it as the thumbnail.
Looking at the code of product_image.tpl I assumed this was because images were in the database. I modified the code to start the loop iteration after the first image to fix the problem. Code:
{section name=image loop=$images start=1} |
This is a great mod, but ? is there a way to also have the first detailed image show up as the thumbnail image in the catagory section also? Basically wanting to use the detailed image as the product image. Just curious if this can be also done?
Thanks |
All times are GMT -8. The time now is 03:19 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.