X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Use thumbnail as detailed if detailed image is not available (https://forum.x-cart.com/showthread.php?t=16082)

Dorette 08-22-2005 10:25 AM

Use thumbnail as detailed if detailed image is not available
 
How can I use thumbnail as detailed image if detailed image is not available?
I have some detailed images.

balinor 08-23-2005 03:27 AM

You mean you want to just repeat the thumbnail below the product description again?

Dorette 08-23-2005 06:24 AM

not exactly, what i mean is this

on the detailed product page,
if there is a detailed image show it, if not show thumbnail

Dorette 08-25-2005 05:43 AM

Any help?

shan 08-25-2005 08:10 AM

check custom mods forum for stuff like this, done plenty of times

Dorette 08-25-2005 02:03 PM

Hi Shan,
Do you have a link to any of those topics, I have searched all over but still can't find any ?

shan 08-26-2005 03:56 AM

a quick search of custome mods forum gives this in the first few results

http://forum.x-cart.com/viewtopic.php?t=21397&highlight=detailed+image

search for detailed AND images in custom mods forum

Dorette 08-26-2005 04:12 AM

Hi Shan,
Thanks a lot, i read the topic but I think this is what the mod is for
Quote:

replace the thumbnail on the product page with the first image from your detailed images and then have your detailed images section start with the second detailed image


This is to use the thumbnail on the detailed product page. and then use the detailed image as a first detailed image.

What i am looking for is this

I have some deatiled images for some products and only the thumbnails for others

on my detailed page, I want an if clause like this

If detailed image is available show the detailed image
else show the thumbnail for this product.

shan 08-26-2005 04:31 AM

just find the code that shows the thumbnail in product.tpl and wrap this round it

Code:

{if $images}

code to show detailed imge

{else}

code to show thumbnail

{/if}


see skin1/modules/detailed_images folder for files that control showing detailed images

Dorette 08-27-2005 09:56 PM

Hi Shan,
I used this code and I am getting the no image available image instead of the thumbnail where there is no detailed image



{if $images}
{include file="modules/Detailed_Product_Images/product_images.tpl" }
{else}
{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}
{/if}


All times are GMT -8. The time now is 07:12 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.