View Single Post
  #1  
Old 10-06-2009, 08:23 AM
 
dennisvon dennisvon is offline
 

Member
  
Join Date: Feb 2006
Posts: 21
 

Default 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.
__________________
Version 4.4.2
www.smokeinn.com
Reply With Quote