Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Double method rewrite
 
BoostMyShop
Sr. Member
 
Avatar
Total Posts:  155
Joined:  2008-06-11
France
 

hello smile

i’m using a module that rewrites Mage_Adminhtml_Block_Sales_Order_Grid in order to add a column in the admin orders list.
I need to add my own column to display other information.

However, i’d like to use 2 different modules.

But if i enable the 2 modules, only the first one rewrite rules are applied…

is there a way to allow multiple rewrites ?

thanks in advance smile

PS: to illustrate, here is the rewrite markup:

<global>
        <
blocks>
            <
fianet>
                <class>
Gr_Fianet_Block</class>
               </
fianet>
               <
adminhtml>
                <
rewrite>
                    <
sales_order_grid>Gr_Fianet_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
                    <
sales_order_view_tab_info>Gr_Fianet_Block_Adminhtml_Sales_Order_View_Tab_Info</sales_order_view_tab_info>
                </
rewrite>
            </
adminhtml>
 
Magento Community Magento Community
Magento Community
Magento Community
 
alistek
Sr. Member
 
Total Posts:  293
Joined:  2008-04-02
Normal, IL
 

Could you try just making to rewrite nodes?  I.E.

<global>
        <
blocks>
            <
fianet>
                <class>
Gr_Fianet_Block</class>
               </
fianet>
               <
adminhtml>
                <
rewrite>
                    <
sales_order_grid>Gr_Fianet_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
                </
rewrite>
                <
rewrite>
                    <
sales_order_view_tab_info>Gr_Fianet_Block_Adminhtml_Sales_Order_View_Tab_Info</sales_order_view_tab_info>
                </
rewrite>
            </
adminhtml>

-Adam

 
Magento Community Magento Community
Magento Community
Magento Community
 
BoostMyShop
Sr. Member
 
Avatar
Total Posts:  155
Joined:  2008-06-11
France
 

i believe u misunderstood me smile

i get 2 modules: module1 & module2
Each module owns its config.xml and have to add a column on the sales order list view.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Unirgy
Guru
 
Avatar
Total Posts:  478
Joined:  2007-09-07
 

you’ll have to combine them into one, i guess

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top