| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Thumbnail show only if not default | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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. |
|||||||
#2
|
|||||||
|
|||||||
Re: Thumbnail show only if not default
I had x-cart modify the script for me, works great.
|
|||||||
|
|||
X-Cart forums © 2001-2020
|