Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Mass editing products manufacturers?

Started by schobook on 18 Jan 2013, 3:27 PM · Views: 586

Results 1 to 6 of 6
18 Jan 2013, 3:27 PM
#1
schobook avatar

schobook

New Zenner

Join Date:
Jul 2012
Posts:
52
Plugin Contributions:
0

Post #1 by schobook

How would I go about mass editing the manufacturers? All of them will be the same manufacturer.

Thank you,

19 Jan 2013, 11:56 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,153
Plugin Contributions:
56

Post #2 by lat9

Are you saying that you have many products created, all by the same manufacturer, but forgot to set the manufacturer associated with those products?
Do you have the manufacturer defined now using your admin's Catalog->Manufacturers?

If you answered "Yes" to those two questions, what is the manufacturers_id of that manufacturer? You can deduce the value by clicking the Info button next to the manufacturer's name and then looking at your browser's address bar which will look like:

http://www.yourstore.com/YOUR_ADMIN/manufacturers.php?page=1&mID=[B]6[/B]&action=edit

The value I've highlighted in **bold **is the manufacturers_id of that Manufacturer.

19 Jan 2013, 7:16 PM
#3
schobook avatar

schobook

New Zenner

Join Date:
Jul 2012
Posts:
52
Plugin Contributions:
0

Post #3 by schobook

Yes to both of those questions. So the ID is 29. What do I do with that?

manufacturers.php?page=1&mID=29&action=edit

19 Jan 2013, 8:59 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,153
Plugin Contributions:
56

Post #4 by lat9

OK, back up your database, then run the SQL command

UPDATE products SET manufacturers_id=29;

If you run that in your admin's Tools->Install SQL Patches, it will automatically add any database prefix you're using.

20 Jan 2013, 1:29 AM
#5
schobook avatar

schobook

New Zenner

Join Date:
Jul 2012
Posts:
52
Plugin Contributions:
0

Post #5 by schobook

Will this work if I have already added the manufacture to some products?

Thanks,

20 Jan 2013, 12:04 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #6 by schoolboy

schobook:

Will this work if I have already added the manufacture to some products?

Thanks,

Quite safe to run this if ALL products are to have the same manufacturer - even those you have already assigned. This instruction just tells the database to associate every product with manufacturer whose ID is 29 - so if it already has that ID in the field, it will just over-write the initial 29 with the new 29.

20 years a Zencart User