Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Thumbnail show only if not default

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 10-16-2009, 11:18 AM
 
dennisvon dennisvon is offline
 

Member
  
Join Date: Feb 2006
Posts: 21
 

Smile Re: Thumbnail show only if not default

I had x-cart modify the script for me, works great.
__________________
Version 4.4.2
www.smokeinn.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:27 PM.

   

 
X-Cart forums © 2001-2020