Add a tab on the magento product description page to call static block/static block content:
1. Add a static block to the CMS --> static block in the management background. Pay attention to the createdIdentifierName. Here, we assume that a static block with identifier as shipping is created.
2. Create a model file: in the template folder of your template directory, create a new folder named myblock and create a phtml file, for exampleShipping. phtml
3. Open shipping.html and enter this Code:
<?php echo $this->getLayout()->createBlock(‘cms/block‘)->setBlockId(‘shipping‘)->toHtml() ?>
4. In the layout folder of your template directory, edit local. xml or review. xml and add
<catalog_product_view> <reference name="product.info.tabs"> <block type="myblock/shipping" name="shipping" as="shipping" /> <action method="addTab" translate="title" module="review"> <alias>shipping</alias> <title>Shipping</title> <block>review/product_view_list</block> <template>myblock/shipping.phtml</template> </action> </reference></catalog_product_view>
Refresh the front-end product page and you will see the new shipping tab.
Add static block/static block to the Product Description Tab