1
votes

My problem:

At one point, everything was working fine. Associated simple products for a configurable product inherited the configurable products' categories. Then we reorganized some categories and added a few new ones, and now all existing child products' assigned categories have been wiped out, and when I create a new configurable product and use quick create to associate child products, it no longer passes the parent product's category assignments along.

What I've tried:

I've tried assigning products to categories through Manage Categories > Desired Category > Category Products tab > Reset Filter button > Check off all desired products, but then Magento becomes unhappy with me and won't make the change. Now it looks like I'm also stuck going through all the simple products manually and assigning categories.

Solution I'm looking for:

I do not want an extension as a solution, as we already are using several, and have had issues with them conflicting with each other. Is there a simple way to programmatically assign a parent product's categories to its child product? Or perhaps there's some setting that I'm overlooking?

Any help would be greatly appreciated!

1
I had this same problem, and posted my solution on this other SO question: stackoverflow.com/questions/22184352/… I can't figure out how to flag it is a duplicate, perhaps a mod can help?Eric Seastrand

1 Answers

0
votes

This is a task rather than a specific question.

It is pretty trivial to write an extension who's sole task would be to gather all of the configurable product, then set all of their child product's category_ids attribute to the original configurable's. Then use the cron to run it at certain intervals (like once a day or once a week).

It would be just as easy to make a stand alone script to do it too (though you would have to visit the page to run it).