I try to rewrite sales_order_view
Here is what I have in config.xml
<blocks>
<adminhtml>
<rewrite>
<sales_order_view>Bitstream_FancourierSelfawb_Block_View</sales_order_view>
</rewrite>
</adminhtml>
<bitstream_selfawb>
<class>Bitstream_FancourierSelfawb_Block</class>
</bitstream_selfawb>
</blocks>
Ofcorse, I have the proper file in Bitstream/FancourierSelfawb/Block
All I need is to add a button but looking over other modules I see that block is already overwritten.
<blocks>
<adminhtml>
<rewrite>
<sales_order_view>Fooman_EmailAttachments_Block_View</sales_order_view>
</rewrite>
</adminhtml>
</blocks>
If I comment this in config.xml from Fooman module I can see my button. Otherwise, no luck.
Is there a way to overwrite same block twice in different module?
In
app/etc/modules/Bitstream_FancourierSelfawb.xmladd adependsnode.Of course your
Bitstream_FancourierSelfawb_Block_Viewclass will have to extendFooman_EmailAttachments_Block_Viewdirectly instead of the Mage original.If you want your addition to work both with and without the Fooman extension then you’ll have to resort to a lengthier event-based method.