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)
-   -   Thumbnail show only if not default (https://forum.x-cart.com/showthread.php?t=50055)

dennisvon 10-06-2009 08:23 AM

Thumbnail show only if not default
 
I want to show the product_thumbnail.tpl within the products.tpl only if I have uploaded a custom thumbnail.
So I was thinking I need an if statement to show product_thumbnail.tpl if product thumbnail eq ?.

I have tried the easy fixes like changing the size of the default image to 1 pixel, the problem is that I still get to much extra space in the products list where the product_thumbnail.tpl displays.

Here is my if so far,

{if $usertype eq "C"} {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 show_border="Y"} {else} {/if}

Thanks.

dennisvon 10-16-2009 11:18 AM

Re: Thumbnail show only if not default
 
I had x-cart modify the script for me, works great.


All times are GMT -8. The time now is 02:12 PM.

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