• RemovE

    Thank You, save some time. For step three xml looks like smth this:

    my_custom_tab
    customertab/adminhtml_customer_edit_tab_action

    • Ramesh

      Thanks for your feedback. Yes In step 3 it is customer_edit_tab_actioncustomertab/adminhtml_customer_edit_tab_action , but the syntax highlighter seems to ignore the underscore characters. We ll update it soon.

  • http://russell@russellalbin.com Russell Albin

    I tried to follow your examples, but I just dont get that link to show! I am using Magento Enterprise 1.10.1.1. Any ideas? Is there a way to see when/why this is failing to load( similar to xdebug and step though debugging? )

    • Ramesh

      The Article is written on magento 1.5 Community Edition, iam not sure about its working in Enterprise Edition. Anyway if you need to debug your code you can follow any one of my previous articles about Magento debugging.
      Creating Custom log file in magento
      Magento debugging tips

  • Peter

    Great post. I need to make my custom field required. How can i do that?

    • http://mydons.com Ramesh

      Hi Peter you want your custom field in custom tab. if you are showing your field in form class you can use something like this below
      $fieldset->addField(‘yourcustomfield’,'text’ ,
      array(
      ‘name’ => ‘Your Field Name’,
      ‘label’ => ‘Field Label’,
      ‘class’ => ‘css class name here’,
      ‘required’ => TRUE,
      )
      )

      • Peter

        Thanx, i’ve fixed it by adding class=” required-entry required-entry select” to my dropdown box

      • Deepak

        How to add custom tab in product add page ?

        • http://mydons.com Ramesh

          For your question Adding custom tab in product page, i haven’t tried that one, but i found some articles on google search on otherblogs. You can try that.

  • Haney

    I’m looking for to add a new tabpage under category in magento admin, which loads the category grid. Idea is to associate multiple categories to one category and on the front end, when you click on that particular category, it should show products from all the associated categories. Is there any better solution then create a new tabpage with categories grid?
    If not then can anybody help me to guide how to create a new tabpage under category in admin…

  • Gustavo Cunha

    Hi, I tryed this code on Magento 1.6.1.0 and it didn´t work. can you put a download file with this working, so I can test it?

    • http://mydons.com Ramesh

      This code is written based on 1.5.1.0 version, and we dont have code backup as it is a sample module

  • fer

    why would you use this method when you can use overload the class? seems hacky

    • http://mydons.com/author/ramesh/ Ramesh

      As you see in the customer edit page there are several tabs like Account,Addresses, Newsletter. Each tab have their own class, there is no one single class which we can override and create all the tabs.

  • http://www.witsgroup.in Milan Thakur

    hi, i am using Magento ver. 1.7.0.0 and the above code is not working with Magento 1.7 . Will you please help me how can i add new tab in manage customer section in Magento ver. 1.7.0.0.

  • Du Le Van

    I have added tab to edit panel but now how can I put the grid to the tab? I’ve try many way but not success!

    • http://mydons.com/author/ramesh/ Ramesh

      you need to create a grid class. for more clarification check the core code of other tabs with grid in edit panel i.e newsletter grid, orders grid etc