1

I have two modules.

<sales>
   <rewrite>
       <order>Extension_A_Model_Sales_Order</order>
   </rewrite>
</sales>


<sales>
   <rewrite>
       <order>Extension_B_Model_Sales_Order</order>
   </rewrite>
</sales>

I found the following way to fix conflict in them:

<config>
 <modules>
   <Extension_B>
      <depends>
          <Extension_A/>
      </depends>
   </Extension_B>
 </modules>
</config> 

Then

I need to use <depends>, what else shall I do to complete this task? Do I need to remove when using to fix conflict.

Thanks in advance:)

1 Answer 1

2

Take a look at Same model rewrite in two modules causes conflict?

update your class

class Extension_A_Model_Sales_Order extends Mage_Model_Sales_Order

class Extension_B_Model_Sales_Order extends Extension_A_Model_Sales_Order

Then remove

<sales>
   <rewrite>
       <order>Extension_A_Model_Sales_Order</order>
   </rewrite>
</sales>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.