I wanna export CSV from sales -> orders grid with only selected lines and not all commands like with the default button.
If there's a solution for that ?
Thank you for advance
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI wanna export CSV from sales -> orders grid with only selected lines and not all commands like with the default button.
If there's a solution for that ?
Thank you for advance
So what happens when the order csv is run is the following.
Mage_Adminhtml_Sales_OrderController::exportCsvAction
is called,$this->getLayout()->createBlock('adminhtml/sales_order_grid');
,Mage_Adminhtml_Block_Widget_Grid::_exportIterateCollection
What you could do is rewrite the admin controller or make your own controller and then use this in the admin section. Then instead of simply getting a complete sales order grid you can build the grid with the correct collection including the filters selected by the user.