public function test() {
$controllerAction = $observer->getEvent()->getControllerAction();
Mage::log("TEST success", null, "dev.log"); // for your logs
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('MI_ProductAutoSynchronization')->__('Error sending Email'));
Mage::app()->getResponse()->setRedirect($controllerAction->getUrl('*/sales_order/')); //the controller where you want to redirect
Mage::app()->getResponse()->sendResponse();
exit ;
}
PЯINCƎ
- 11.7k
- 3
- 26
- 82