Import xml or csv with products
-
Re: Add a functionality of creating a product in framework by importing a csv file
How can i import a xml or csv file with products?
Thanks! -
Hi,
We recommend you to create package for it, if you don't have, because changing in core will cause a problem with latest release.
So, In your package create a view file, which consist to upload csv or xml, provide route to that view file with your controller (your package's controller & route).
Now when user submit it, your controllers method should be called and write code in this controller for import.
Now you can override product's page's index view to provide a button there so that it call your view using your route.
In this way you can do this, if you face any issues, please write here.
Thanks