Reading list Switch to dark mode

    Add New Tab in Category Page in Magento 1 admin panel

    Updated 13 February 2019

    Add New Tab in category in Magento 1 admin panel

    Today we will see how to add new tab in category in Magento 1 admin panel.

    There are 2 ways of doing so. We can always override this core magento block file Mage_Adminhtml_Block_Catalog_Category_TabsBut this way is not very efficient. In that block file we can see a dispatch event adminhtml_catalog_category_tabs. This event can be used to add tabs in this manner-

    In config.xml file

    <global>
        <events>
            <adminhtml_catalog_category_tabs>
                <observers>
                    <Webkul_Module_Model_Observer>
                        <type>singleton</type>
                        <class>Webkul_Module_Model_Observer</class>
                        <method>newTab</method>
                    </Webkul_Module_Model_Observer>
                </observers>
            </adminhtml_catalog_category_tabs>
        </events>
    </global>
    

    Next in the above mentioned Observer.php file

    public function newTab($observer)
    {
        $tabs = $observer->getTabs();
        $tabs->addTab('customtab', array(
            'label'     => Mage::helper('module')->__('Custom Tab'),
            'content'   => "This is a custom tab"
        ));
    }
    

    This will give us a new custom tab

    Searching for an experienced
    Magento Company ?
    Find out More

    Add New Tab in Category in Magento 1 admin panel

    That’s it.

    Happy coding 🙂

     

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home