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

Replace Product ID Number

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-10-2005, 08:33 AM
 
cbarnes cbarnes is offline
 

Member
  
Join Date: Oct 2005
Location: Kansas
Posts: 18
 

Default

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}
__________________
Chris Barnes
Ative LLC
X-Cart Development & Consulting
Reply With Quote
  #12  
Old 11-10-2005, 08:41 AM
 
mixman mixman is offline
 

Member
  
Join Date: Aug 2003
Posts: 20
 

Default

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.
__________________
version 3.4.8
Reply With Quote
  #13  
Old 11-10-2005, 08:51 AM
 
mixman mixman is offline
 

Member
  
Join Date: Aug 2003
Posts: 20
 

Default

I don't see that code in
{* $Id: products.tpl,v 1.5 2004/07/13 13:35:43 svowl Exp $ *}
__________________
version 3.4.8
Reply With Quote
  #14  
Old 11-10-2005, 08:57 AM
 
cbarnes cbarnes is offline
 

Member
  
Join Date: Oct 2005
Location: Kansas
Posts: 18
 

Default

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 $ *}
__________________
Chris Barnes
Ative LLC
X-Cart Development & Consulting
Reply With Quote
  #15  
Old 11-10-2005, 09:22 AM
 
mixman mixman is offline
 

Member
  
Join Date: Aug 2003
Posts: 20
 

Default

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.
__________________
version 3.4.8
Reply With Quote
  #16  
Old 11-10-2005, 09:26 AM
 
mixman mixman is offline
 

Member
  
Join Date: Aug 2003
Posts: 20
 

Default

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.
__________________
version 3.4.8
Reply With Quote
  #17  
Old 12-02-2005, 06:57 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default

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

Is it possible ?

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #18  
Old 12-02-2005, 07:00 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default

opps .. just figured it:

{$products[product].productcode}

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
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 05:06 PM.

   

 
X-Cart forums © 2001-2020