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"}&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}