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

Show recommended and related products in 3 columns (in one row)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-18-2009, 07:37 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Smile Re: 3 column layout with thumbnail for Related Products

Just wanted to share my edit to show recommended and related products in 3 columns (in one row) simplified. Works for 4.2
First related products:
Code:
{* $Id: related_products.tpl,v 1.20 2008/10/07 10:52:42 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $product_links ne ""} {capture name=dialog} <table class="uproducts"> <tr> {section name=cat_num loop=$product_links} <td><a href="product.php?productid={$product_links[cat_num].productid}"{if $config.Upselling_Products.upselling_new_window eq 'Y'} target="_blank"{/if}>{include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=$config.Appearance.thumbnail_width product=$product_links.product tmbn_url=$product_links[cat_num].tmbn_url}<br /><br />{$product_links[cat_num].product|amp}</a></td> {/section} </tr> </table> {/capture} {include file="customer/dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog additional_class="uproducts"} {/if}
and this code for recommended products:
Code:
{* $Id: recommends.tpl,v 1.14 2008/10/07 10:52:42 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $recommends} {capture name=recommends} <table class="rproducts"> <tr> {section name=num loop=3} <td> <a href="product.php?productid={$recommends[num].productid}&cat={$cat}&page={$navigation_page}"> {include file="product_thumbnail.tpl" productid=$recommends.productid image_x=$config.Appearance.thumbnail_width product=$recommends.product tmbn_url=$recommends[num].tmbn_url}<br /><br /> {$recommends[num].product|amp}</a> </td> {/section} </tr> </table> {/capture} {include file="customer/dialog.tpl" title=$lng.txt_recommends_comment content=$smarty.capture.recommends additional_class="rproducts-dialog"} {/if}
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote

The following user thanks just_me for this useful post:
rct (02-17-2011)
  #2  
Old 02-22-2011, 08:04 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: 3 column layout with thumbnail for Related Products

Quote:
Originally Posted by just_me
Just wanted to share my edit to show recommended and related products in 3 columns (in one row) simplified. Works for 4.2
First related products:

Umm.. your code is for "recommended" products(Recommended_Products). This thread is about "related" products (Upselling_Products). They are two entirely different modules and people are liable to confuse them.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-24-2011, 06:54 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Show recommended and related products in 3 columns (in one row)

Moving to separate forum (source forum -> http://forum.x-cart.com/showthread.php?t=10773&page=10)
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 01:45 AM.

   

 
X-Cart forums © 2001-2020