| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Removig SKU Prefix | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Does anynoe know how to remove the "SKU" prfix that x-cart adds to the product sku when creating a new product? I can fined the text label and the also the product code in the templates but I can find no reference to the "SKU" characters anywhere....
Thanks, Rich
__________________
Rich ___________________________ X-Cart version 4.2.2 Gold |
|||||||
#2
|
|||||||
|
|||||||
![]() SKU prefix? X-Cart only creates a product id...the SKU is up to you.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() sorry double post
__________________
Rich ___________________________ X-Cart version 4.2.2 Gold |
|||||||
#4
|
|||||||
|
|||||||
![]() Ahhh..not sure. You could use webmaster mode to track down the template...that will give you a start....
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() http://www.royalsalt.com/sku.jpg
the sku "SKU16432" highlighted in the attached photo was auto generated. All I have done here is to create a new product - NO DATA of any typ has been entered. I want to get rid of the "SKU" prefix (the three characters themselves) X-cart produced the SKU16432 Any thoughts? I can not find it anywhere. PHP or templates. Thanks, Rich
__________________
Rich ___________________________ X-Cart version 4.2.2 Gold |
|||||||
#6
|
|||||||
|
|||||||
![]() GOT IT
include\product_modify.php Line 574 $SKU_prefix='SKU' i just deleted the SKU and all works well so i now have $SKU_prefix=''
__________________
Rich ___________________________ X-Cart version 4.2.2 Gold |
|||||||
#7
|
|||||||
|
|||||||
![]() Tweak as above plus:
ORIGINAL: Line 579 $product_info['productcode'] = $sku_prefix.($product_info['productcode']+$plus); NEW: Line 579 $product_info['productcode'] = ''; NOTE those are two single quotes in the replacement code. Additionally I would comment out the original line 579 then insert the adjusted code. R.
__________________
Rich ___________________________ X-Cart version 4.2.2 Gold |
|||||||
#8
|
|||||||
|
|||||||
![]() Works greatly. Thanks.
__________________
version 4.1.1 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|