How to Import CSV File to Custom Table In Magento 2

in #magentotutorials4 years ago

During the import of the product in Magento 2, some of the data or columns from the CSV file need to be imported to a custom table. So let’s crack up on the implementation to Import CSV file to Custom Table in Magento 2 🚀

How-to-Import-CSV-File-to-Custom-Table-In-Magento-2-950x500.png

Steps to Import CSV File to Custom Table in Magento 2:
Step 1: Create an import.xml file at the following path:

app/code/Vendor/Extension/etc

Step 2: Create file CustomImport.php under app/code/Vendor/Extension/Model/Import folder and add the following code:

Step 3: Create validator interface file RowValidatorInterface.php under app/code/Vendor/Extension/Model/Import/CustomImport folder and add the below code

for more details: https://magecomp.com/blog/import-csv-file-to-custom-table-magento-2/

Coin Marketplace

STEEM 0.19
TRX 0.18
JST 0.039
BTC 90343.33
ETH 3214.39
USDT 1.00
SBD 2.84