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

Adding Thumbnails to "Upselling Products" area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-13-2003, 02:17 PM
 
ferrisj ferrisj is offline
 

Newbie
  
Join Date: Mar 2003
Posts: 1
 

Default Adding Thumbnails to "Upselling Products" area

I'm having trouble getting the the images to pull in properly, plus it's not putting them on the same row. I want it to just display the thumbnail and name in 3 column format.

Can anyone help me with this code, i know i'm pretty close.

Code:
{* $Id: related_products.tpl,v 1.7 2002/10/22 10:27:05 olga Exp $ *} {if $product_links ne ""} {capture name=dialog} <table border=0 width=100%><tr><td> <table border=0 width=100%> {section name=cat_num loop=$product_links} {if $smarty.section.product_links.index is div by 3} </tr><tr valign="top"> {/if} <td valign="top"> <table border=0 width=100%> <tr> <td width=150 align=center valign=top> <a href=product.php?productid={$product_links[cat_num].productid}&cat={$cat}&page={$navigation_page}>{include file="product_thumbnail.tpl" productid=$product_links[product].productid image_x=150 product=$products[product].product}</a> {$product_links[cat_num].product|escape}</font> <font class=TableCenterProductTitleOrange> </font><font size=1></font></p></td> </tr> </table> </td> {/section} </td></tr></table> </td></tr></table> {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"} {/if}
Thanks,
Jeff
Reply With Quote
  #2  
Old 04-14-2003, 08:47 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You might try this:

Code:
{include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=150 product=$products[product].product}

I'm assuming the thumbnails aren't being displayed?

anyhow, hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 12:37 AM.

   

 
X-Cart forums © 2001-2020