I am trying to export the transaction data into csv.
To achieve this I have added following line of code
“protected function _prepareColumns()” function in app/code/core/Mage/Adminhtml/Block/Sales/Transactions/grid.php file.
Also I have added an action exportCsvAction in /app/code/core/Mage/Adminhtml/controllers/Sales/TransactionsController.php
public function exportCsvAction()
$fileName = ‘transactions.csv’;
$grid = $this->getLayout()->createBlock(’adminhtml/sales_transactions_grid’);
Now, when i try to export the transactions data I get error saying “You cannot define a correlation name ‘sop’ more than once”.
Can anyone help me on this?