I have used the Observer event in my Custom module, but when i load the added event, it is showing below error message,
Mage Registry key "Observer" already exists.
I have checked the Compiler Mode, it is in Disable state.
I am using event, Any help will be much appreciated.
<global>
<events>
<sales_order_status_history_save_before>
<observers>
<auto_order_statua>
<class>Custom_Status_Model_Observer</class>
<method>implementOrderStatus</method>
</auto_order_statua>
</observers>
</sales_order_status_history_save_before>
</events>
</global>
Observer.php
class Custom_Status_Model_Observer
{
public function implementOrderStatus(Varien_Event_Observer $observer)
{
//$order = $observer->getOrder();
//$stateProcessing = $order::STATE_PROCESSING;
//$state = $order->getState();
mail('[email protected]', 'test', 'test');
}
}
Mage::register
in there ?