Zen Cart Logo
Forums / General Questions / Bulk Character Strip from Product Model Field

Bulk Character Strip from Product Model Field

Views: 633

Results 1 to 4 of 4
4 Mar 2012, 12:25 PM
#1
mach9 avatar

mach9

New Zenner

Join Date:
Oct 2009
Posts:
15
Plugin Contributions:
0

Bulk Character Strip from Product Model Field

I have some 500 products where the v_products_model field needs to be changed. Currently all of this particular type of product is pre-fixed with "XOAR-XXXXXXX", I need to strip the "A" from each of these particular products setting the v_products_model field to "XOR-XXXXXXX".

I hope there is an sql command line that can be run on the database to do this, can anyone help please. :smile:

Thanks

4 Mar 2012, 1:48 PM
#2
jlizotte avatar

jlizotte

New Zenner

Join Date:
Feb 2012
Location:
Ohio, USA
Posts:
58
Plugin Contributions:
0

Re: Bulk Character Strip from Product Model Field

If you're using Apsona or Easy Populate...this is easy.

  1. Export your products to the CSV in either mod.
  2. Open the spreadsheet in Open Office or Excel
  3. Use the "Find & Replace" function to find "XOAR" and replace with "XOR"
  4. Save as CSV, then re-upload.
  5. Using Apsona, choose "update product info" when importing. (I don't use EP, so I don't know the specific option, but it should be similar.

I hope that helps.

John

4 Mar 2012, 1:55 PM
#3
jlizotte avatar

jlizotte

New Zenner

Join Date:
Feb 2012
Location:
Ohio, USA
Posts:
58
Plugin Contributions:
0

Re: Bulk Character Strip from Product Model Field

Mach,

I hit "enter" too soon. I just thought of something. I think I read somewhere in one of these posts that Apsona and EP might "key" or "index" from the model number field. If this is the case, you may run into issues with what I posted above.:oops:

Best to wait until someone with more experience pipes up :D My way might cause you more problems than you need. I've used the search & replace alot without problems, but never on model number.

Cheers.

John

4 Mar 2012, 2:25 PM
#4
jlizotte avatar

jlizotte

New Zenner

Join Date:
Feb 2012
Location:
Ohio, USA
Posts:
58
Plugin Contributions:
0

Re: Bulk Character Strip from Product Model Field

Mach,
I was right (wrong)! Don't use my method. Lol. You'll end up with 500 new items.

I found this thread, though, that might interest you:
http://www.zen-cart.com/forum/showthread.php?t=183306

J