Forums / Setting Up Categories, Products, Attributes / How do I bulk-move all products from Sub-Category into a parent Category?

How do I bulk-move all products from Sub-Category into a parent Category?

Views: 2,267

Results 1 to 3 of 3
7 Jun 2012, 3:27 AM
#1
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

How do I bulk-move all products from Sub-Category into a parent Category?

Hi,

I set up a sub-category of a product category and in hindsight it really shouldn't be a sub-category - visitors are going to a page with nothing there other than the sub-category name/image then having to enter the sub-category.

How do I move all the products (98) from sub-category into the main category, other than moving each product one by one using the move button. (tried using move button to move sub-category to main category but it is already there right !! :ohmy:

thanks in advance for the assistance.

cheers,
Mike

7 Jun 2012, 3:11 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How do I bulk-move all products from Sub-Category into a parent Category?

If you go to the Old Category, let's say that is categories_id 86 ... and click on C for copy ...

Now click on the Multiple Categories Link Manager ...

At the bottom of the screen are several boxes ... lets' say you want to move ALL products from the OLD categories_id 86 to the NEW categories_id 87 ...

Copy ALL Products in a Category as LINKED Products to another Category ...
Example: Using 8 and 22 would Link ALL Products in Category 8 to Category 22
Select All Products in Category: 86 Link to Category: 87

Then, use:

Reset ALL Products in the selected Category to use the selected Category as the new Master Categories ID ...
Example: Resetting Category 22 would set ALL Products in Category 22 to use Category 22 as the Master Category ID
Reset the Master Categories ID for All Products in Category: 87

Then use:

Remove ALL Products in a Category that are LINKED Products to another Category ...
Example: Using 8 and 22 would Unlink ALL Products in Category 8 from Category 22
Select All Products in Category: 86 Remove from being Linked to Category: 87

NOTE: before doing this, backup your database ...

NOTE: if you have NO Products in the NEW categories_id, you will see a RED message about invalid category during this process ... if you have 1 or more Products in the NEW category, you will see a green message during the process ...

Now go to the NEW categories_id and you should see all of the products have been moved and their master_categories_id have be set to the NEW category ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Jun 2012, 6:19 PM
#3
relish avatar

relish

New Zenner

Join Date:
Jun 2012
Posts:
33
Plugin Contributions:
0

Re: How do I bulk-move all products from Sub-Category into a parent Category?

Thanks Ajeh that was useful to us also.