I am writing this mainly for my self. I have been searching for
the correct information everywhere, and I do not want to forget
it. So here we go, how can we add a extra tab to the Magento
product page.
I am using screenshots here from my own design called
pt004-full.
Step1
Add the following code to the catalog.xml file, below the
“Description”. Make sure it is part of your theme, check the
screenshots.
<block type=”catalog/product_view_description”
name=”product.description1″ as=”description2″
template=”catalog/product/view/additionalinfo.phtml”>
<action
method=”addToParentGroup”><group>detailed_info</group></action>
<action
method=”addToParentGroup”><group>detailed_info</group></action>
<action method=”setTitle”
translate=”value”><value>Additional
Info</value></action>
</block>
Step2
Add the following code to a file called additionalinfo.phtml
(You will have to create it.) Make sure it is part of the
theme, check the screenshot.
<?php
$_helper = $this->helper(‘catalog/output’);
$_product = $this->getProduct()
?>
<?php
$additionalinfo =
$this->getProduct()->getData(‘additionalinfo’);
echo $additionalinfo;
?>
Step3
Create a attribute and add it to your attribute set. Call the
attribute additionalinfo, check the screenshot.