Adding New Tabs on Product Page

I’ve check the other forums, but they don’t seem to have the same structure as jm_trex. I’ve tried several things and can’t get it to work yet. I want to add another tab that references my "Videos" attribute and displays the video on it’s own tab. Any help would be greatly appreciated!

1 answer

Profile photo of tomc 0.00 $tone February 20, 2013
Public

If you want the tab to appear only when editing a product add an ‘if’ statement around it:

Code:

if (Mage::registry('current_product')->getId()) {
    $block->addTab(TAB SETTINGS HERE);
}

If you want the tab to appear on the product creation but only after selecting the product type add this if statement around it:

Code:

if (Mage::registry('current_product')->getAttributeSetId()) { 
    $block->addTab(TAB SETTINGS HERE);
}

Here are some additional resources that may further assist you . . .

http://www.atwix.com/magento/adding-…-product-page/

http://www.woolleydesign.net/2012/07…product-pages/

http://magedziner.com/blog/?p=207

There is also a FREE extension available for this . . . .

http://www.magentocommerce.com/magen…-easytabs.html

Hope That Helps

#1

Please login or Register to Submit Answer

Written By

Comments