Magento custom tab of category edit page
Magento custom tab of category edit page

Here I will give you the idea how to create custom tab in category edit page in admin section of magento. In this part I will just show you Magento custom tab of category edit page not the full description like how to save data into database.For doing custom tab with custom attribute you refer to next tutorial where I have explained well one by one with examples.So lets focus only this tutorial how we can simply create custom tab with our custom content on the selected tab.Sometime if we don’t like to use category attribute and we want to use some other extra features then we can do it easily or if you like to use category attribute then its simple you can use this tutorial.I am not explaining everything at first because if I will explain everything it may be weird for you .So lets us focus only on how to create Magento custom tab of category edit page.For this we can do it in two ways first either oy overriding adminhtml blocks Mage_Adminhtml_Block_Catalog_Category_Tabs or catching event by observer.So I always prefer to observer section which more reliable and portable. Lets lets start one bye one.

First Method:

By event observer:

Here for this section we need to have two files one registering file for registering the observer with our method in magento and then through Observer.php file we can do our custom code to add custom tab.Here I just defined the event adminhtml_catalog_category_tabs to catch the events and called my custom method to add custom tab on method of Observer.php file.


Dir: app/code/[Code_Pool]/[NameSpace]/[ModuleName]/etc/config.xml
e.g: app/code/local/JRB/Customtab/etc/config.xml


Dir: app/code/[Code_Pool]/[NameSpace]/[ModuleName]/Model/Observer.php
e.g: app/code/local/JRB/Customtab/Model/Observer.php

Second Method:

By Overriding Adminhtml Block:

This is my second method through which you can add custom tab in magento category edit page.SO here I am going to override magento core block into my custom module.So lets see how will I override magento adminhtml block that is Mage_Adminhtml_Block_Catalog_Category_Tabs into custom module. Through this tutorial you may get little idea how to override magento block to custom module.For doing this I need to file fist the config.xml file and second my block file where I will extends the Mage_Adminhtml_Block_Catalog_Category_Tabs.So lets see .


Dir: app/code/[Code_Pool]/[NameSpace]/[ModuleName]/etc/config.xml
e.g: app/code/local/JRB/Customtab/etc/config.xml


Dir: app/code/[Code_Pool]/[NameSpace]/[ModuleName]/Block/Catalog/Category/Tabs.php
e.g: app/code/local/JRB/Customtab/Block/Catalog/Category/Tabs.php

This tutorial was just simple explanation how to add custom tab in different method or procedures .For more features like creating attribute with group or for managing with custom form you can follow magento custom tab of category edit page with custom attribute

Hope you got your required solution and learned something from here And I guess you will share URL or bookmarked this URL for your other friends.

Magento custom tab of category edit page
Tagged on:                                         

One thought on “Magento custom tab of category edit page

  • August 19, 2016 at 6:07 pm

    how to add my custom block that created under Name_Space/Module/Block/Admin/custom_tab.php as content in event Observer (First Method)


Leave a Reply

Your email address will not be published.