View Single Post
  #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