cancel
Showing results for 
Search instead for 
Did you mean: 

override community module's carrier

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

override community module's carrier

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: override community module's carrier

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

View solution in original post

1 REPLY 1

Re: override community module's carrier

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