Overriding a class in Magento. The nice way to do it is to define your own module and override the class. (2 xml files, 1 source file. distributed over the source tree :S )
<?xml version="1.0"?> <config> <modules> <Company_Shipping> <active>true</active> <codepool>local</codepool> </Company_Shipping> </modules> </config>
This didn't work. No errors, no message just didn't activate my module.
This did work. Find the differences:
<?xml version="1.0"?> <config> <modules> <Company_Shipping> <active>true</active> <codePool>local</codePool> </Company_Shipping> </modules> </config>
(Check the word codepool instead of codePool)
Every time I'm working with Magento I get these kind of problems and issues. It takes to much time to make simple changes. Way to much configuration. No descent error messages. Files littered across multiple folders.
:S
Makes me glad I can work with Spree (and Rails) most of the time. With nice convention based overrides. Gem support. Nice deployment. Git friendly etc. ;)