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

Confused by Product_Thumbnail.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-17-2011, 02:35 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default Confused by Product_Thumbnail.tpl

Hi, I am trying to edit my product_thumbnail.tpl file, but it's so confusing to me.

I want this in esssence:

{if $mode eq "search"}
display thumbnail image only without link
{else}
display thumbnail image that links to product
{/if}

Any ideas on how to do that?

Here's my current code:
HTML Code:
{if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")}<img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&amp;id={$productid}{/if}"{if $image_x ne 0} {if $smarty.get.slot eq "342"}width="172"{else} width="{$image_x}"{/if}{/if}{if $image_y ne 0} {if $smarty.get.slot eq "342"}height="170"{else}height="{$image_y}"{/if}{/if} alt="{$product|escape}" onmouseover="Tip('{$products[product].product}')" onmouseout="UnTip()"/>{/if}
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #2  
Old 02-20-2011, 03:49 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default Re: Confused by Product_Thumbnail.tpl

bump
__________________
4.1.9 Gold

window valances | curtains
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 10:46 PM.

   

 
X-Cart forums © 2001-2020