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

thumbnails instead of text for recommended items

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-03-2003, 05:42 AM
 
dtherio dtherio is offline
 

Advanced Member
  
Join Date: Jan 2003
Location: Dallas, Texas
Posts: 84
 

Default 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
Reply With Quote
  #2  
Old 03-11-2003, 10:35 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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}
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 01-22-2004, 08:19 AM
 
sabrina sabrina is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Indianapolis, IN., USA
Posts: 53
 

Default

Working fine, but how display image not from database but from file system? Thank you
Reply With Quote
  #4  
Old 03-05-2004, 09:39 AM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Thanks FunkyDunk I needed this!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:41 AM.

   

 
X-Cart forums © 2001-2020