MAGENTO 1.X – IMPORTING AND EXPORTING CSV FILES


Many times, you will need to work with external csv’s files. This simple script will help you on import and export them, and other stuff.

  • Create a new file called csvworker.php under <MageRoot>/shell/
  • If you will not pass the filename through parameter, remember to change method “getFileName()”.
  • Then, you can call the script on your console, doing the following (under shell forlder):

Note: if you just want to save a csv with a content of an array, you can do so, with the following command: