I'm using Magento 1.9.0.1.
I'm trying to create a very simple extension that is listening for a order status change.
Here is what i have done so far:
File: /VivasIndustries/SmsNotification/etc/config.xml:
<?xml version="1.0"?>
<config>
<modules>
<VivasIndustries_SmsNotification>
<version>0.1.0</version>
</VivasIndustries_SmsNotification>
</modules>
<global>
<events>
<sales_order_save_after>
<observers>
<vivasindustries_smsnotification>
<class>smsnotification/observer</class>
<method>orderSaved</method>
</vivasindustries_smsnotification>
</observers>
</sales_order_save_after>
</events>
</global>
File: /VivasIndustries/SmsNotification/Model/Observer.php:
<?PHP
class VivasIndustries_SmsNotification_Model_Observer
{
public function orderSaved(Varien_Event_Observer $observer)
{
Mage::log("Test")
}
}
File: /app/etc/modules/VivasIndustries_SmsNotification.xml:
<?xml version="1.0"?>
<config>
<modules>
<VivasIndustries_SmsNotification>
<active>true</active>
<codePool>community</codePool>
<version>0.1.0</version>
</VivasIndustries_SmsNotification>
</modules>
</config>
I've done everything by this guide: http://www.danielhanly.com/blog/observing-order-status-changes-magento/
The problem is that when i check out my system.log file there is no line or text with "Test". It seems it is not inserting this text in the log file that makes me think it is not recognizing when i change order status/save order.
Can you please point me where is my mistake and help me out resolve this problem.
Thanks in advance!