I'm working on a module and I need a block file to be overridden in order to add new functionality. I know how to override blocks, model and controllers but I want to know that what will happen if the class I'd extended was being used by another module class?
The above scenario is as follows:
In my module config.xml I'd overridden a block file as:
<blocks> <checkout> <rewrite> <cart_shipping>Company_Module_Block_Cart_Shipping</cart_shipping> </rewrite> </checkout> </blocks>
and override a method
but there's another module whose block file extends
Mage_Checkout_Block_Cart_Shipping. My question is -
"Will that class be able to see the changes made in the overridden class in my module?"
"Do I have to override the other modules block file?"