Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:36:30+00:00 2026-06-18T10:36:30+00:00

I have created a custom tab under catalog product, the tab is coming fine

  • 0

I have created a custom tab under catalog product, the tab is coming fine but when i click on the tab the template for the block is not loading. It echo what i type but it is not fetching the template. I write this function in a class HTC_Csvpricing_Block_Adminhtml_Catalog_Product_Tab extends Mage_Adminhtml_Block_Template implements Mage_Adminhtml_Block_Widget_Tab_Interface

public function _construct()
{
    parent::_construct();
    echo "I m here";
    $this->setTemplate('csvpricing/tab.phtml');
}

Here what I write in app/design/adminhtml/default/default/layout/csvpricing.xml

<csvpricing_adminhtml_csvpricing_index>
    <reference name="content">
        <block type="csvpricing/adminhtml_csvpricing" name="csvpricing" />
    </reference>
</csvpricing_adminhtml_csvpricing_index>

<adminhtml_catalog_product_edit>
    <reference name="product_tabs">
        <action method="addTab">
            <name>csvpricing_tab</name>
            <block>csvpricing/adminhtml_catalog_product_tab</block>
        </action>
    </reference>
</adminhtml_catalog_product_edit> 

Please guide what I am missing.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:36:31+00:00Added an answer on June 18, 2026 at 10:36 am

    You can do as follow :
    Module config.xml

    <config>
        <adminhtml>
            <layout>
                <updates>
                    <your_module>
                        <file>your-module.xml</file>
                    </your_module>
                </updates>
            </layout>
        </adminhtml>
    </config>
    

    Create the layout XML in /app/design/adminhtml/default/default/layout/your-module.xml:

    <?xml version="1.0"?>
    <layout>
        <adminhtml_catalog_product_edit>
            <reference name="product_tabs">
                <action method="addTab">
                    <name>your_module_some_tab</name>
                    <block>your_module/adminhtml_catalog_product_tab</block>
                </action>
            </reference>
        </adminhtml_catalog_product_edit>
    </layout>
    

    Create the tab block in {your_module}/Block/Adminhtml/Catalog/Product/Tab.php:

    class Your_Module_Block_Adminhtml_Catalog_Product_Tab 
        extends Mage_Adminhtml_Block_Template
        implements Mage_Adminhtml_Block_Widget_Tab_Interface
    {
        /**
         * Set the template for the block
         */
        public function _construct()
        {
            parent::_construct();
    
            $this->setTemplate('catalog/product/tab/some-tab.phtml');
        }
    
        /**
         * Retrieve the label used for the tab relating to this block
         *
         * @return string
         */
        public function getTabLabel()
        {
            return $this->__('Some Tab');
        }
    
        /**
         * Retrieve the title used by this tab
         *
         * @return string
         */
        public function getTabTitle()
        {
            return $this->__('Some Tab');
        }
    
        /**
         * Determines whether to display the tab
         * Add logic here to decide whether you want the tab to display
         *
         * @return bool
         */
        public function canShowTab()
        {
            return true;
        }
    
        /**
         * Stops the tab being hidden
         *
         * @return bool
         */
        public function isHidden()
        {
            return false;
        }
    }
    

    you need to create a data helper to support translation, if your module does not have one already.

    Make the tabs template in /app/design/adminhtml/default/default/template/catalog/product/tab/some-tab.phtml:

    <div class="entry-edit">
        <div class="entry-edit-head">
            <h4>Some Heading</h4>
        </div>
        <div class="fieldset fieldset-wide">
            <div class="hor-scroll">
                <!-- your content here -->
            </div>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have created the new custom config TAB in admin panel configuration section under
I have tab controller created through storyboards with a custom implementation (simple buttons and
I have created a custom cell for loading into a table. The interface is
I have created a custom view with a XIB file and are loading the
I have created a custom control but I can't bind a property to the
I've created my own custom SurfaceView which works fine on its own but when
I have created a custom tab in admin which I need to manage customer
I have created a custom module which displays a tab and a section in
I am implementing a tab;e in which i have created a custom cell for
I have created a custom list input form based on the default New.aspx template.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.