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

Override Adminhtml ProductController
 
PaulE
Member
 
Avatar
Total Posts:  43
Joined:  2008-12-09
 

Did anybody succeed overriding the Adminhtml ProductController? I can override an Block from the Adminhtml by putting this in my config.xml under the Global section:

<blocks>
            <
adminhtml>
                <
rewrite>
                    <
catalog_product_edit_tabs>MyNameSpace_MyModule_Block_Catalog_Product_Edit_Tabs</catalog_product_edit_tabs>
                </
rewrite>
            </
adminhtml>
        </
blocks>

But now I want to override the ProductController, so I did:

<controllers>
            <
adminhtml>
                <
rewrite>
                    <
catalog_product>MyNameSpace_MyModule_controllers_Catalog_ProductController</catalog_product>
                </
rewrite>
            </
adminhtml>
        </
controllers>

Unfortunately this isn’t working, it fully ignores my customer controller (just a file with <?php die(); in it..
Hope somebody can help me further with this smile

EDIT
Created an action in my own controller for me new Tab, but if anybody knows an answer to this it would be nice though smile

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