How to merge product description and additional information tabs?

10,902

Solution 1

For Remove Additional Information Tab comment following code from catalog.xml

<action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>  

For display Additional Information in Product Description Tab paste following code in
"catalog/product/view/description.phtml" file.

<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes', '', array('template'=> 'catalog/product/view/attributes.phtml'))->toHtml(); ?>

Solution 2

As far as I know the tabs are added via the layout xml (see catalog.xml) in your package by the method "addTab".

Example:

<action method="addTab" translate="title" module="catalog"><alias>upsell_products</alias><title>We Also Recommend</title><block>

You could comment that line in catalog.xml and edit app/design/frontend/your_package/default/catalog/product/view.phtml and echo the information you want ;)

Share:
10,902
user1481153
Author by

user1481153

Updated on June 05, 2022

Comments

  • user1481153
    user1481153 almost 2 years

    I am using a Modern theme which separates all information into tabs. I want to merge some of the tabs as visitors hate clicking.

    I spent hours searching, but can't fine one that actually works.

    Here is example of what I want to achieve:

    http://www.teasta.com/chocolate-mint-rooibos-herbal-tea-4oz-tin.html

    You can see description appears just above the Additional information (attributes)

    How do I do this in Magento 1.7.0?

  • echoashu
    echoashu over 9 years
    i actually like to edit the view.phtml file , since my custom theme inherit description file from base ;-)
  • Holly
    Holly almost 9 years
    @Pankaj, rather than commenting out code from a core file, i.e. catalog.xml, it is best practice to use the your theme's layout local.xml file to update remove items. e.g. <reference name="product.info.tabs"> <action method="unsetChild"><name>additional</name></action> </reference>. Otherwise your changes will be lost when you upgrade Magento.