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)
-   -   Replace Product ID Number (https://forum.x-cart.com/showthread.php?t=17860)

cbarnes 11-10-2005 08:33 AM

Quote:

Originally Posted by mixman
Yes, but SKU numbers are not visible until checkout. So most customers who are just browsing will never see that number and will usually refer to the productid number if they have questions regarding a paticular product.


Actually, by default, the SKU is displayed in the product listings.

skin1/customer/main/products.tpl
Code:

<FONT class="ProductTitle">{$products[product].product}</FONT>


{$lng.lbl_sku}: {$products[product].productcode}


mixman 11-10-2005 08:41 AM

On my version 4.0.16 the product listings page only shows:

Sort by: SKU Product Price Default

But the actual SKU number is not visible. I only see it at checkout.

mixman 11-10-2005 08:51 AM

I don't see that code in
{* $Id: products.tpl,v 1.5 2004/07/13 13:35:43 svowl Exp $ *}

cbarnes 11-10-2005 08:57 AM

Quote:

Originally Posted by mixman
I don't see that code in
{* $Id: products.tpl,v 1.5 2004/07/13 13:35:43 svowl Exp $ *}


mixman,

Are you sure you are looking at the correct template? We are talking about version 4.0.16 aren't we?

/xcart/skin1/customer/main/products.tpl

My version(X-Cart version 4.0.16):
Code:

{* $Id: products.tpl,v 1.45.2.14 2005/09/21 11:29:23 mclap Exp $ *}

mixman 11-10-2005 09:22 AM

I am looking at the correct template. It is strange the my version is
{* $Id: products.tpl,v 1.5 2004/07/13 13:35:43 svowl Exp $ *} and yours is
{* $Id: products.tpl,v 1.45.2.14 2005/09/21 11:29:23 mclap Exp $ *}
I am going to restore my file back to original and see what comes up. I'll let you know.

mixman 11-10-2005 09:26 AM

That is very strange. When I restored the file back to original it came back
as {* $Id: products.tpl,v 1.45.2.14 2005/09/21 11:29:23 mclap Exp $ *}
I have not even modified that page.... X-Cart ghosts are at work again!!!
The SKU numbers are now visible on product list.

chamberinternet 12-02-2005 06:57 AM

So how can i display the SKU number on the product detail page (product.tpl) ?

Is it possible ?

Regards

Shafiq :sK

chamberinternet 12-02-2005 07:00 AM

opps .. just figured it:

{$products[product].productcode}

Regards

Shafiq :sK


All times are GMT -8. The time now is 08:55 PM.

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