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,
New Zenner
How would I go about mass editing the manufacturers? All of them will be the same manufacturer.
Thank you,
Administrator
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.
New Zenner
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
Administrator
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.
New Zenner
Will this work if I have already added the manufacture to some products?
Thanks,
Totally Zenned
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
Tell staff why this post should be reviewed.