I want to track that I am editing an order at backend in magento, so I want to track that Edit button has been clicked at backend in order section. See below image for more help-
How can I track an order is being edited at backend. I also Googled for an observer for this event but could not found. Please anybody can help me here. Anyone can ask question if he has.
EDITED:- Now I have added following code in config.xml file-
<controller_action_predispatch_adminhtml_sales_order_edit_index>
<observers>
<kartparadigm_storecredit>
<class>kartparadigm_storecredit/observer</class>
<method>editOrder</method>
</kartparadigm_storecredit>
</observers>
</controller_action_predispatch_adminhtml_sales_order_edit_index>
and in my observer.php file-
public function editOrder(Varien_Event_Observer $observer)
{
Mage::log("I am bad boy");
$order = $observer->getEvent()->getOrder();
Mage::log('order-id- '.$order->getIncrementId());
Mage::log('order-status- '.$order->getStatus());
}
Only "I am a bad boy" is printed in log file and it shows 500 Server Error on edit page. I think its because of second line in observer method but not sure why?