Magento 1.9 – Adding Custom Tabs in Product Detail Page

magento-1.9product-attributetabs

I have created an attribute with "Product Details" as Textarea in admin panel.

Now I need to make it display as "Product Details" next to description tab in product detail page for each and every product.

Any suggestions please.

Best Answer

Just add this code after Description block in catalog.xml files

<block type="catalog/product_view_attributes" name="Your_attribute_name" as="additional" template="catalog/product/view/attributes.phtml">
    <action method="addToParentGroup"><group>detailed_info</group></action>
    <action method="setTitle" translate="value"><value>Your tab name</value></action>
 </block>

you can add in the above way for any number of tabs needed hope this helps.

Related Topic