Make the CSV authoritative
Use the supported replacement behaviour so the supplied categories become the product’s complete set, rather than simply adding to existing assignments.

Make the categories in your CSV the complete assignment for each imported product. Remove stale category memberships as part of a deliberate recategorisation.
Replacement removes existing category assignments that are absent from the imported set. Test on staging and back up first.
For Magento Open Source 2.4.9. Review the module guide for installation, dependencies and frontend integration requirements. We can help check the fit with your existing store.
Use the supported replacement behaviour so the supplied categories become the product’s complete set, rather than simply adding to existing assignments.

Prepare and test a small import, review the resulting category memberships and keep a recoverable backup before a larger recategorisation.
Check the module guide, supported version and setup requirements for your store.
Install and configure on staging. Test the workflows that matter to your team.
Deploy the tested configuration and use the included support when you need help.
Review the supported version and module guide, and test on staging with your current theme and extensions. Luma presentation and headless integration requirements vary by module; contact us if you need help checking compatibility.
The one-time licence includes 12 months of updates and priority support. Purchased versions remain usable. Renewal is optional and never billed automatically; see the current purchase terms for eligibility and renewal details.
Yes. AgenticSuite includes the Astro storefront and all headless and Luma-compatible modules listed on this website. You can buy this module for the store you run today, or discuss the complete platform for a frontend rebuild.
Also available on Adobe Commerce Marketplace
AgenticEcom store: v1.0.4 · Adobe Marketplace: v1.0.4.
Import Category Replace is a Magento 2 module that adds a Replace behaviour to Magento’s native product import, using non-empty category cells in your CSV to replace previous assignments instead of only appending them. Blank category cells leave assignments unchanged.
Magento’s product CSV import has a behaviour that surprises everyone the first time: when you import a product with categories, it appends them. It adds the categories in your spreadsheet to whatever the product already has — and it never removes the ones you left out. So when you re-categorise your catalogue — a new taxonomy, a seasonal re-merchandise, a cleaned-up supplier feed — the import dutifully adds the new categories and leaves all the old ones in place. Now every product sits in two categories: the right one, and the one you were trying to remove.
The only native way out is to un-assign the old categories by hand, product by product, across the admin. On a catalogue of any size that is hours of click-work and a guaranteed crop of mistakes.
Import Category Replace adds a replace behaviour to Magento’s standard product import. Switch it on and the categories column in your spreadsheet becomes the whole truth: the product is assigned to exactly the categories in the row, and any category it was previously in that is not in the row is removed. Set Category Handling to Replace under Stores → Configuration → AgenticEcom → Product Import Settings, then run Magento’s native Products → Add/Update import with the same CSV format.
| Scenario | Native import (append) | Import Category Replace |
|---|---|---|
| Product in “Old Range”, CSV says “New Range” | Ends up in both | Ends up in “New Range” only |
| Move products to a new taxonomy | Hours of manual un-assigning | One Add/Update import; test a small batch first |
| Price, stock, attributes | Updated as normal | Updated as normal — only categories are replaced |
Anyone re-organising a catalogue at scale: re-taxonomies, re-platforms, merchandising overhauls, and especially teams running automated supplier or PIM feeds where a product’s categories should always mirror the source of truth. If your category tree is meant to be driven by a spreadsheet or a feed, this is the module that makes the import actually obey it.
No. Use Magento’s ordinary product CSV format. Set the module’s category handling in Stores → Configuration before running Products → Add/Update in the native import screen.
It is removed from that product. The row defines the complete, final set of categories.
No. Price, stock, attributes and everything else import exactly as they normally would — only category assignment switches from append to replace.
Import Category Replace is part of the AgenticEcom Suite and works naturally alongside Category Manager for shaping the tree and Bulk Product Operations for sweeping changes across products.
No — same columns, same categories path format as native import. You just set the behaviour to Replace in config.
In Replace mode it's removed from that product. The row defines the complete, final set of categories.
A blank categories cell leaves that product’s category assignments unchanged. Back up your catalogue and test a small batch before a broad import; review Magento’s validation errors for invalid category paths.
The tested path is Magento Admin’s native Products → Add/Update CSV import. A separate CLI import path has not been qualified.
Category Manager for shaping the tree and Bulk Product Operations for sweeping product changes.
Latest release: Version 1.0.4
Read our Replace Product-Category Assignments During Magento CSV Import for the task, native alternatives, supported scope and checks to make before choosing an extension or frontend route. Use the module setup guide for installation and configuration.
Keep improving the store you run today. When you need a full frontend rebuild, AgenticSuite combines the Astro storefront, visual admin and included module collection.
Your source code.
Your data. Your direction.
Review the setup requirements, choose your module and get started. We’re here if you need to check the fit.