X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Confused by Product_Thumbnail.tpl (https://forum.x-cart.com/showthread.php?t=58109)

anela2003 02-17-2011 02:35 PM

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}


anela2003 02-20-2011 03:49 PM

Re: Confused by Product_Thumbnail.tpl
 
bump


All times are GMT -8. The time now is 07:33 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.