Hi there,
I've got a carrier class under "community->namespace->communitymodule->model->carrier"
I want to override it, in order to do it I've created a local module with a same path to same file in the carrier and a config.xml.
In the config I wrote this:
<?xml version="1.0"?>
<config>
<modules>
<namespace_modulenamespace_module>
<version>0.1.0</version>
<depends>
<modulenamespace_module />
</depends>
</namespace_modulenamespace_module >
</modules>
<global>
<models>
<module>
<rewrite>
<carrier_myclass>namespace_modulenamespace_module_Model_myclass</carrier_myclass>
</rewrite>
</module>
</models>
</global>
</config>I don't know what I'm getting wrong with this, do you know how I can make it work?
Thanks
Solved! Go to Solution.
there are alot of things could go wrong while trying to rewrite a class, I suggest you find a tutorial and follow it.
Most importantly, you need a YOUR_MODULE.xml in etc/modules to active your module, and refresh cache