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

Display My SKU#

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-25-2007, 05:58 AM
  herbj's Avatar 
herbj herbj is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Florida
Posts: 62
 

Default Display My SKU#

I have searched and have not found this answer yet.

Is it possible to have my SKU# display rather than the x-cart generated number?

My SKU# will display in product list but x-cart number shows in Detail info. I would like mine to follow the product.

Also, can the skew be displayed in the cart along with the product?

Any help is appreciated!
Reply With Quote
  #2  
Old 02-25-2007, 06:00 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display My SKU#

Sure, just change $product.productid to $product.productcode

Moving to Template Editing
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-25-2007, 06:07 AM
  herbj's Avatar 
herbj herbj is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Florida
Posts: 62
 

Default Re: Display My SKU#

I assume I change every occurrence of this code in the customer/main/product.tpl?

Still new to PHP coding!
Reply With Quote
  #4  
Old 02-25-2007, 06:14 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display My SKU#

No, you need to be careful and only change it where you want it to appear. In product.tpl, there should already be a line displaying the sku?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-25-2007, 06:43 AM
  herbj's Avatar 
herbj herbj is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Florida
Posts: 62
 

Default Re: Display My SKU#

Ok, I love a good hunt but the potential for problems is high.
When I click on the item and it displays the product detail which includes the title bar with the product name and x-cart auto SKU# I would like mine to display.

In the Template Sticky it says that "product.tpl" displays the product details. Again I am under customer/main/product.tpl! If that is not correct can you point me in the right direction?

Is there a way to tell which ".tpl" you are working in or need to edit without having to be a proficient programer.
Reply With Quote
  #6  
Old 02-25-2007, 06:47 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display My SKU#

Ahhh..that one is answered here:

http://forum.x-cart.com/showthread.php?t=20303

As far as which tpl is which, good guide here:

http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 02-25-2007, 07:06 AM
  herbj's Avatar 
herbj herbj is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Florida
Posts: 62
 

Default Re: Display My SKU#

Ok, I am getting your point about reading more.
I changed the code as you suggested and followed the link to the thread about the most asked questions. The answer there just removed the x-cart skew all together but did not display mine.

I altered the code as you suggested and now have my sku displaying instead of the x-cart auto Sku but the item title is missing.

Now, Is there a way to keep the product title and still display my sku? Changing the code as you suggested drops the item title!
I could live with that but would prefer the title and my Sku#. like "Big Red Widget XXX-XXXX" Currently "XXX-XXXX"
Reply With Quote
  #8  
Old 03-01-2007, 11:29 AM
 
jeff819 jeff819 is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 42
 

Default Re: Display My SKU#

I too am wondering how to have the product detail page display both Product Title AND SKU. I can get it to do either or, but not both.

Can anyone help us with us please?

Thanks,
Jeff
__________________
X-Cart Gold - Version 4.0.19
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 10:14 AM.

   

 
X-Cart forums © 2001-2020