Hello I am unable to get the order status in the observer sales_order_place_after I also tried other events like checkout_onepage_controller_success_action, checkout_type_onepage_save_order_after. Here is my code
<global>
<models>
<xyz_customorderstatusmodel>
<class>Endive_CustomOrderStatus_Model</class>
</xyz_customorderstatusmodel>
</models>
<events>
<checkout_submit_all_after>
<observers>
<xyz_CustomOrderStatus_Model_Observer>
<type>singleton</type>
<class>xyz_customorderstatusmodel/observer</class>
<method>implementOrderStatus</method>
</xyz_CustomOrderStatus_Model_Observer>
</observers>
</checkout_submit_all_after>
</events>
public function implementOrderStatus(Varien_Event_Observer $observer){
$mytime = "time - " . date('d-m-Y H:i:s');
Mage::log('in me');
$status = $observer->getEvent()->getOrder()->getStates();
Mage::log('My variable : '.$mytime .' -- ' .$status);
die;
}