The default Magento 2 product import feature only allows you to specify the category path string in the import file. How can I import product by using the category ID instead?


The extension in the link below allows you to import product into Magento 2, by using the category ID.


| improve this answer | |
  • the module is not working and have issue in override – sandip patel Jun 27 at 10:15

i have gone to same module before,but have some problem in di.xml,i have small and effective way to do it,it is simple

Just Override This File :/vendor/magento/module-catalog-import-export/Model/Import/Product/CategoryProcessor.php

and find function public function upsertCategories() change whole code of this function like as below

enter image description here

in this sollution u can set category ids like below enter image description here

it will accept category id as well as full category path as default. Thanks

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.