Hello friends,
In magento the default/default theme is not providing tabs in product’s detail page. But the default/modern theme provides. So here we will discuss some steps for adding product’s description tab in product’s detail page of magento default/default theme.
Step1: Copy /app/design/frontend/base/default/layout/catalog.xml file, in /app/design/frontend/default/default/layout/ folder.
Step 2:Add
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" > <action method="addTab" translate="title" module="catalog"><alias>description</alias><title>Product Description</title><block>catalog/product_view_description</block><template>catalog/product/view/description.phtml</template></action> </block>
code in /app/design/frontend/default/default/layout/catalog.xml file below the
<action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
Step 3: Copy /app/design/frontend/base/default/template/catalog/product/view.phtml file in /app/design/frontend/default/default/template/catalog/product/ folder.
Step 4: Copy /app/design/frontend/base/default/template/catalog/product/view/description.phtml file in /app/design/frontend/default/default/template/catalog/product/view/ folder.
Step 5: Copy /app/design/frontend/ default/modern/template/catalog/product/view/tabs.phtml file in /app/design/frontend/default/default/template/catalog/product/view/ folder.
Step 6:Add
echo $this->getChildHtml('info_tabs');
code in /app/design/frontend/ default/default/template/catalog/product/view.phtml file below the
<div class="product-collateral">
Hope this will help you.
Thanks.
Speak Your Mind