cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Import: “Check Data” and “Import” Button. What php method is called?

Magento 2 Import: “Check Data” and “Import” Button. What php method is called?

I have two similar questions regarding the import in Magento 2:

 

1. what class method is called when the "Check Data" button is clicked?

The button has this attribute onclick="varienImport.postToFrame();", but I am not able to figrure out what php file is called ultimatley.

 

2. What class method is called when the subsequent "Import" button is clicked?

1 REPLY 1

Re: Magento 2 Import: “Check Data” and “Import” Button. What php method is called?

1) The postToFrame posts uses the form action in HTML which you can see find the URL of in the block on this line: https://github.com/magento/magento2/blob/9c14af7a97bcf338662de365d2613c7ca9dbf8c6/app/code/Magento/I...

 

The matching controller can then be found here: https://github.com/magento/magento2/blob/9c14af7a97bcf338662de365d2613c7ca9dbf8c6/app/code/Magento/I...

 

 

2) I believe this is the controller called when the import is actually run https://github.com/magento/magento2/blob/9c14af7a97bcf338662de365d2613c7ca9dbf8c6/app/code/Magento/I...

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!