| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to Place Sku# in Dialog instead of Product Id | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to Place Sku# in Dialog instead of Product Id
Hi there,
I want to be able to replace the product id# that shows on the heading of each product description with the sku# from the product. I think it should be fairly simple, but not sure what the code would be. Amy |
|||||||
#2
|
|||||||
|
|||||||
Just find the following line in the file config.php:
Code:
and replace it with the following line: Code:
I am using the older version of xcart. |
|||||||
#3
|
|||||||
|
|||||||
Ryan,
I looked in the config.php file and didn't find any of the code you referenced. I'm using 3.2.1 Part of the info you gave me did help though. I believe this is the code I need to edit in product.tpl Quote:
If I change it to: Quote:
this removes the product number reference, which I don't need. I tried this code: Quote:
and it just puts the sku number in the dialog. I guess I need a combination of $product.product and $product.productcode but I'm not sure how to write it. Any suggestions? Amy |
|||||||
#4
|
|||||||||
|
|||||||||
Amy
We're running 3.2.1 and have done this too ... Ryan is correct with the method, just not the code location for 3.2.1. You'll find the code to replace (as in his quote) in func.php which can be found in xcart/include Just find the following line in the file func.php: Code:
and replace it with the following line: Code:
If you then look at the detailed product page, you'll see the product description including the SKU ... Best of luck LeeD
__________________
Why a mouse when it spins ...... X-Cart Gunslingers - For Hire!! http://forum.x-cart.com/viewtopic.php?t=8615 |
|||||||||
#5
|
|||||||
|
|||||||
Leed,
Got it fixed! Works great now! Thanks!! Amy |
|||||||
|
|||
X-Cart forums © 2001-2020
|