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

  • Home
  • SEARCH
  • 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 7703607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:29:53+00:00 2026-05-31T23:29:53+00:00

I got a small issue with Magento : I need to load the content

  • 0

I got a small issue with Magento :
I need to load the content of “Custom Options” during page load, not when I click on the associated tab, for a product creation. This is currently working with Ajax.

I need this because when you open the tab, it loads automatically some new options.

Tabs from General to Gift Options are loaded automatically, and the rest is load on click on the tab.

I found the class who create the content : app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php and the function : _prepareLayout().

For “Custom Options” tab you got something like that :

$this->addTab('customer_options', array(
'label' => Mage::helper('catalog')->__('Custom Options'),
'url'   => $this->getUrl('*/*/options', array('_current' => true)),
'class' => 'ajax',

));

And for the autoloaded tab content you got :

$this->addTab('group_'.$group->getId(), array(
'label'     => Mage::helper('catalog')->__($group->getAttributeGroupName()),
'content'   => $this->_translateHtml($this->getLayout()->createBlock($this->getAttributeTabBlock(),
    'adminhtml.catalog.product.edit.tab.attributes')->setGroup($group)
        ->setGroupAttributes($attributes)
        ->toHtml()),

));

I don’t figure how to use the addTab function with “content”, not “url” and “class” for the “Custom Options” tab.

Does anyone already deal with that ?
Thanks a lot !

  • 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-05-31T23:29:55+00:00Added an answer on May 31, 2026 at 11:29 pm

    With the help of Magento Community I found that :

    $this->addTab('customer_options', array(
                    'label'     => Mage::helper('catalog')->__('Custom Options'),
                    'content'   => $this->_translateHtml($this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_options',
                        'admin.product.options')->toHtml()),
                )); 
    

    Works like a charm.
    Cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a small little page that is going to be viewed from a
Got a small issue with this website structure: www.bigideaadv.com/xsp Looking to have this container
I got a small issue here. I have a button in a form (this
A small issue over here i have 4 sections when i click on the
I've got an small issue, I'm trying to make my own forum, but I
Just knocking up an image switcher, and come across a small issue: I've got
I haven't got clue if this is a normal issue or not but I
I've got a small issue with Derobin's implementation of WMD editor. It doesn't seem
I've got a small issue which I was hoping someone could give me some
I've got two small structural issues that I'm not sure how to handle given

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.