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

Modify Related Products Listing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-09-2008, 04:57 PM
 
ShopCart ShopCart is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 35
 

Default Modify Related Products Listing

How do you change the Related Products to show the sku instead of the product id?

Currently it shows something like this under "Related Products":
#47 Sample Product A

I'd like it to show:
<sku number> Sample Product A

Any help you can offer would be greatly appreciated. I've hunted through some of the templates, but didn't find anything definitive to change.
__________________
X-Cart Gold v4.1.10 (upgraded from v4.1.9)
X-AOM, X-FANCYCAT, X-MAGNIFIER, X-OFFERS
MagneticOne XML Site Maps, Googlebase Export
CDSEO Pro
One Page Checkout & On Sale
Reply With Quote
  #2  
Old 08-11-2008, 05:55 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Modify Related Products Listing

In skin1/modules/Upselling_Products/related_products.tpl...

Find
<td width="1%">#{$product_links[cat_num].productid}</td>
and try replacing with
<td width="1%">#{$product.productcode}</td>

I haven't tested this but it should give you your sku.
__________________
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 08-11-2008, 06:08 AM
 
ShopCart ShopCart is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 35
 

Default Re: Modify Related Products Listing

Quote:
Originally Posted by JWait
In skin1/modules/Upselling_Products/related_products.tpl...

Find
<td width="1%">#{$product_links[cat_num].productid}</td>
and try replacing with
<td width="1%">#{$product.productcode}</td>

I haven't tested this but it should give you your sku.


I thought that did it, but it's pulling the sku of the main product page and not the related products. I'll play around with it some more. Thanks for pointing out where the file is.
__________________
X-Cart Gold v4.1.10 (upgraded from v4.1.9)
X-AOM, X-FANCYCAT, X-MAGNIFIER, X-OFFERS
MagneticOne XML Site Maps, Googlebase Export
CDSEO Pro
One Page Checkout & On Sale
Reply With Quote
  #4  
Old 08-11-2008, 06:17 AM
 
ShopCart ShopCart is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 35
 

Default Re: Modify Related Products Listing

I got it. This will do the trick. Thanks again for your help!

<td width="1%">{$product_links[cat_num].productcode}</td>
__________________
X-Cart Gold v4.1.10 (upgraded from v4.1.9)
X-AOM, X-FANCYCAT, X-MAGNIFIER, X-OFFERS
MagneticOne XML Site Maps, Googlebase Export
CDSEO Pro
One Page Checkout & On Sale
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:46 AM.

   

 
X-Cart forums © 2001-2020