0

i need to export selected product to xml form admin product grid.

i have refer this to export selected product to csv.

Can anyone help for this.

1 Answer 1

1

You have to add the below code in

[NameSpace]\[ModuleName]\Block\Adminhtml\IncreaseStock\Grid.php Find the _prepareColumns() method and below line

protected function _prepareColumns()
{
   $this->addExportType('*/*/exportLowstockCsv', Mage::helper('stockincrease')->__('CSV'));
   $this->addExportType('*/*/exportLowstockExcel', Mage::helper('stockincrease')->__('Excel XML'));
}

Then it will automatically drop-down in Grid.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.