Magento code export orders


After here, I will guide for you how to export orders with total products in there orders 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_orders.php

with content:



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

magento export orders

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...

Comments are closed.

%d bloggers like this: