I have created override file app/code/local/Mage/ImportExport/Block/Adminhtml/Import/Edit.php
and added a button
$this->_addButton('downloadCsv', array(
'label' => $this->__('Download CSV'),
'onclick' => "setLocation('{$this->getUrl('/import/downloadcsv')}')",
));
in __construct()
it is work fine if add action function to core controller
app/code/core/Mage/ImportExport/controllers/Adminhtml/ImportController.php
But i want to override controller. so i have created
app/code/local/Mage/ImportExport/controllers/Adminhtml/ImportController.php
and create
public function downloadcsvAction()
{
// code
}
but it is not called.
Best Answer