Which function will be called in CatalogImportExport module on click of 'Import' button when U import bulk csv products in System->Import->Products

  • i want to override this module in order to add additional functionality apart from saving the productdata – Sushivam Jul 29 '16 at 8:22

Basically the importSource from Magento/ImportExport/Model/Import is called.

Then the processImport from that same class is called.

At this point it's still pretty abstract.

But from the following line:


The system starts importing based on the entity type (in your case products)

The importData method is defined in Magento/ImportExport/Model/Import/AbstractEntity but all it does is calling _importData

Now we go to Magento/CatalogImportExport/Model/Import/Product and here's what happens based on the behavior chosen:

  1. Product deletions in _deleteProducts method
  2. Product replacement in _replaceProducts
  3. Product creation in _saveProductsData
  • Raphael, i want to add only the product_ids of those products which i updated into my custom table..can you please say how i have to override this? When i edit individual product then productids are getting saved, but not by import – Sushivam Jul 29 '16 at 9:04
  • Any suggestion for this? – Sushivam Jul 29 '16 at 9:17
  • @SachinS well that's a different question than what you asked I'm not sure about that – Raphael at Digital Pianism Jul 29 '16 at 9:53
  • Ok in my case, when i have to saveProducts data, is it enuf if i override Magento/CatalogImportExport/Model/Import/Product ? – Sushivam Jul 29 '16 at 10:11
  • @SachinS I guess so yes – Raphael at Digital Pianism Jul 29 '16 at 10:22

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.