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)
-   -   thumbnails instead of text for recommended items (https://forum.x-cart.com/showthread.php?t=1704)

dtherio 03-03-2003 05:42 AM

thumbnails instead of text for recommended items
 
Hello,

I am wanting to show thumbnails of the related items instead of the text. Besides looking better, in my case as I have different types of products with the same basic description it would make more sense.

e.g. "Dad" belt buckle, Worlds Greated Dad keychain and Worlds Greatest Dad pin etc. I don't have the words 'key chain' or 'pin' listed as they are in named categories and that would be redundant.

Thanks

Dale

funkydunk 03-11-2003 10:35 PM

If you amend skin1/modules/recommended products/recommends.tpl

to:

Code:

{* $Id: recommends.tpl,v 1.2 2002/10/22 10:27:05 olga Exp $ *}
{if $recommends}
{capture name=recommends}
{section name=num loop=$recommends}
<table border=0 width=100% cellspacing=0 cellpadding=0>
<tr><td width=110 align=left valign=top>
<a href=product.php?productid={$recommends[num].productid}&cat={$cat}>{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=100 product=$recommends[num].product}</a>


</td>
<td valign="top">
<span class="ItemsList">{$recommends[num].product}</span>
<font size=1>


{$recommends[num].descr|truncate:300:"...":true}


</font>
</td>
</tr>
</table>
{/section}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"}
{/if}


sabrina 01-22-2004 08:19 AM

Working fine, but how display image not from database but from file system? Thank you

GM 03-05-2004 09:39 AM

Thanks FunkyDunk I needed this!


All times are GMT -8. The time now is 02:01 PM.

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