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)
-   -   Display My SKU# (https://forum.x-cart.com/showthread.php?t=29164)

herbj 02-25-2007 05:58 AM

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!

balinor 02-25-2007 06:00 AM

Re: Display My SKU#
 
Sure, just change $product.productid to $product.productcode

Moving to Template Editing

herbj 02-25-2007 06:07 AM

Re: Display My SKU#
 
I assume I change every occurrence of this code in the customer/main/product.tpl?

Still new to PHP coding!

balinor 02-25-2007 06:14 AM

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?

herbj 02-25-2007 06:43 AM

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.

balinor 02-25-2007 06:47 AM

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

herbj 02-25-2007 07:06 AM

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"

jeff819 03-01-2007 11:29 AM

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


All times are GMT -8. The time now is 02:56 PM.

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