Magento code export products

0

After here, I will guide for you how to export products with CSV format by code.

Simple, we need only create a PHP file in root directory magento and direct run with that file.

At here, I will create a file with name is: export_products.php

with content:

 

 

In above code, file export CSV will created at var/export/ and have name is exports_products with suffix is current date.

 

magento export products

 

If you want download that file after process export was finished, please uncomment this code:

and don’t forget comment this code:

Thanks for watching!

About Author

Là một developer rất ham chơi nhưng không ham hố, không ham chơi nhưng rất thích cầm đầu...

Leave a Reply