My requirement is import custom csv file to custom table.
please share hints and key points to achieve this?
Thanks.
exportimportimportexportmagento2
My requirement is import custom csv file to custom table.
please share hints and key points to achieve this?
Thanks.
Best Answer
note: I get crystal clear explanation of custom import option from this link
Please first download the whole zip file from this github link then change the module name as per your requirement. Just alter the two files is enough to import your custom CSV to custom table.
step1: alter app/code/vendor/module_name/etc/import.xml from your download github folder.
step2: then you should need to create model class as per mention in the above import.xml
app/code/vendor/module_name/Model/Import/CustomerGroup.php
My table structure
thats it, for any clarity related to this answer please mention in comment.
@Atish Goshwami answer also correct, Why am I update? because with my way I could achieve result within twenty minutes its simple way to done this.