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)
-   -   Modify Related Products Listing (https://forum.x-cart.com/showthread.php?t=41648)

ShopCart 08-09-2008 04:57 PM

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.

JWait 08-11-2008 05:55 AM

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.

ShopCart 08-11-2008 06:08 AM

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.

ShopCart 08-11-2008 06:17 AM

Re: Modify Related Products Listing
 
I got it. This will do the trick. Thanks again for your help! :D/

<td width="1%">{$product_links[cat_num].productcode}</td>


All times are GMT -8. The time now is 11:20 AM.

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