Product categories grow by accident. A “Misc” bucket fills up, two categories end up meaning the same thing, and the tree that made sense at fifty products is a mess at five hundred. Tidying it in the admin means clicking through the categories screen and editing products one by one.
This lets the agent read the current tree, lay your reorganization out beside it, and make the moves once you approve. Reparenting is guarded so a category can never become its own ancestor, and each product ends up with exactly the category list you approved.
I want to reorganize the product categories in my store. Here is the change Iwant: [rename "Misc" to "Accessories", move "Hats" and "Scarves" under a new"Winter" parent, and put the products tagged [X] into "Winter"]. Do not changeanything yet.
First, list the current product categories with the number of products ineach, and show me the new tree beside the current one plus the exact list ofproducts that would move. Flag anything that would create a loop, like makinga category its own parent.
Once I approve, create and rename the categories, then move the named productsin batches of [20], and pause between batches. Moving a product replaces itswhole category list, so for each product read its current categories first andsend the full list it should end up with, using category IDs, and show me thatfinal list in the plan. Do not use the post-terms tool for products, it isrefused on them unless the Product content type is exposed. At the end, list every category you created or renamed andevery product you reassigned, with its before and after categories.Why this is safe to run
The first pass is a read. Listing the categories and their product counts changes nothing, so you approve a before-and-after tree rather than reshape live data blind. Any reparenting is checked against a circular-hierarchy guard, so an approved move can never leave a category pointing at itself as its own parent.
The product move needs care, and the plan is where it is handled. Update product replaces a product’s category list rather than adding to it, so the agent reads the current list first and shows you each product’s before and after, and a product only ends up with the categories you approved. Renaming and reparenting edit a category in place. There is no delete in this recipe at all: clearing an old category is a deliberate, separate step you take yourself. The term and product abilities stay off until you enable them, every write is checked against the capability of the bound user, and each change is recorded in the Activity Log.
Already connected? Skip the paste. Ask your agent for the “organize product categories in bulk” recipe, or just describe the tree you want, and it runs the same read-then-approve flow on your own store.