- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2015
09:07 AM
05-28-2015
09:07 AM
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.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2015
09:27 AM
05-29-2015
09:27 AM
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
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2015
09:27 AM