Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Adding Additional Product Page Tabs in EE v1.12
 
roblostart
Jr. Member
 
Total Posts:  14
Joined:  2011-07-05
 

Hi Guys,

I’m using Magento Enterprise 1.12 and want to add custom tabs (delivery, videos) to the product view page that have their content specified from the product attributes. The script that initialises the standard tabs (details, specification) is below:

//<![CDATA[
    var collateralTabs = new Enterprise.Tabs('collateral-tabs');
        
Event.observe(window'load', function() {
        collateralTabs
.select();
    
});
//]]>

Aside from creating the product attributes I’m not really sure where to start with this, so any help would be much appreciated!

Kind regards

 
Magento Community Magento Community
Magento Community
Magento Community
 
roblostart
Jr. Member
 
Total Posts:  14
Joined:  2011-07-05
 

Bump, any help is much appreciated!

 
Magento Community Magento Community
Magento Community
Magento Community
 
roblostart
Jr. Member
 
Total Posts:  14
Joined:  2011-07-05
 

Any pointers on this?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
nathancastle
Jr. Member
 
Total Posts:  1
Joined:  2012-04-28
 

In catalog.xml you’ll find the tabs setup with code like:

<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
    <
action method="addToParentGroup"><group>detailed_info</group></action>
    <
action method="setTitle" translate="value"><value>Details</value></action>
    </
block>

So to add another, add another block:

<block type="catalog/product_view_description" name="product.video" as="video" template="catalog/product/view/video.phtml">
    <
action method="addToParentGroup"><group>detailed_info</group></action>
    <
action method="setTitle" translate="value"><value>Video</value></action>
    </
block>

Then create the template file catalog/product/view/video.phtml with whatever content you want the tab to contain.

Whilst that will add a tab just fine, if you want to do it the proper Magento way, the addition should be made using references in the local.xml file of your theme:

<catalog_product_view translate="label">
    <
reference name="product.info">
        <
block type="catalog/product_view_description" name="product.video" as="video" template="catalog/product/view/video.phtml" after="product.attributes">
        <
action method="addToParentGroup"><group>detailed_info</group></action>
            <
action method="addToParentGroup"><group>detailed_info</group></action>
            <
action method="setTitle" translate="value"><value>Video</value></action>
        </
block>
    </
reference>
    </
catalog_product_view>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top