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

Removig SKU Prefix

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-19-2005, 04:23 PM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default 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
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
Reply With Quote
  #2  
Old 07-19-2005, 04:38 PM
 
balinor balinor is offline
 

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

Default

SKU prefix? X-Cart only creates a product id...the SKU is up to you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-19-2005, 04:56 PM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default

sorry double post
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
Reply With Quote
  #4  
Old 07-19-2005, 04:57 PM
 
balinor balinor is offline
 

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

Default

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
Reply With Quote
  #5  
Old 07-19-2005, 06:40 PM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default

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
Reply With Quote
  #6  
Old 07-20-2005, 11:28 AM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default 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=''
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
Reply With Quote
  #7  
Old 07-20-2005, 12:07 PM
 
dManager dManager is offline
 

Advanced Member
  
Join Date: Jan 2005
Location: Erie, Pennsylvania
Posts: 63
 

Default 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.
__________________
Rich
___________________________
X-Cart version 4.2.2 Gold
Reply With Quote
  #8  
Old 03-11-2006, 08:48 PM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default

Works greatly. Thanks.
__________________
version 4.1.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:16 AM.

   

 
X-Cart forums © 2001-2020