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)
-   -   Removig SKU Prefix (https://forum.x-cart.com/showthread.php?t=15334)

dManager 07-19-2005 04:23 PM

Removig SKU Prefix
 
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

balinor 07-19-2005 04:38 PM

SKU prefix? X-Cart only creates a product id...the SKU is up to you.

dManager 07-19-2005 04:56 PM

sorry double post

balinor 07-19-2005 04:57 PM

Ahhh..not sure. You could use webmaster mode to track down the template...that will give you a start....

dManager 07-19-2005 06:40 PM

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

dManager 07-20-2005 11:28 AM

got it
 
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=''

dManager 07-20-2005 12:07 PM

Removing the whole auto SKU generation
 
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.

jdedba 03-11-2006 08:48 PM

Works greatly. Thanks.


All times are GMT -8. The time now is 07:08 AM.

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