To view all active modules, go to System->Configuration->Advanced->Advanced
. If a module doesn't appear in that list, then Magento doesn't know your module exists.
As far as your code, I haven't worked with Magento 1.6.2.0 specifically, but I can see some things that might be causing you trouble. First among them is your namespace and module name. These should always begin with an uppercase letter:
app/etc/modules/Giftcheck_Sales.xml
app/code/local/Giftcheck/Sales/
Which means of course that Giftcheck_Sales.xml
should look like this:
<?xml version="1.0"?>
<config>
<modules>
<Giftcheck_Sales>
<active>true</active>
<codePool>local</codePool>
</Giftcheck_Sales>
</modules>
</config>
Another problem I see is you haven't told Magento where to find your models. There are also some problems with casing.
Your config should look something like this:
<?xml version="1.0"?>
<config>
<global>
<models>
<giftcheck_sales>
<class>Giftcheck_Sales_Model</class>
</giftcheck_sales>
</models>
</global>
<frontend>
<events>
<checkout_onepage_controller_success_action>
<observers>
<giftcheck_sales>
<class>giftcheck_sales/observer</class>
<method>exportOrder</method>
</giftcheck_sales>
</observers>
</checkout_onepage_controller_success_action>
</events>
</frontend>
</config>
There also seems to be a problem with your directory structure.
app/code/local/giftCheck/sales/models/observer.php
should be:
app/code/local/Giftcheck/Sales/Model/Observer.php
And the contents of that file should look something like:
class Giftcheck_Sales_Model_Observer
{
public function exportOrder(Varien_Event_Observer $observer)
{
die('test');
}
}
Don't forget to correct the casing of your observer's class name.
Hope this helps.