Featured templates

Magento. How to add static block to individual products pages

Ray Taylor February 25, 2016
Rating: 3.3. From 4 votes.
Please wait...

In this tutorial we will show how to add a static block to the specific product detail page in Magento.

Magento. How to add static block to individual products pages

  1. Log into the Magento Admin panel and navigate to CMS -> Static Blocks section.

  2. Click on Add New Block.

  3. Specify your Block Title and Identifier. Remember the Identifier as we will need it later.

  4. Add your content in the Content Field:


  5. Save the block when you are done.

  6. Hover over your newly created block to find out the Block ID. Remember the Block ID value as we will need it later:


  7. Go to Catalog -> Manage Products and select your product to edit.

  8. Go to the Design tab.

  9. In the Custom Layout Update field input the following code:

    <reference name=""><block type="cms/block" name="product_info" ><action method="setBlockId"><block_id>22</block_id></action></block></reference>

    Where name=”product_info” is your Identifier and block_id 22 is your Block ID value:


  10. Save this product.

  11. Connect to your server using any FileManager, such as FileZilla.

  12. Open app\design\frontend\tm_themes\themeXXX\template\catalog\product\view.phtml file.

  13. Add the following code into the place where you wish to display the Static Block:

    <?php echo $this->getChildHtml('product_info')?>

    Note: change ‘product_info’ to your own Identifier:


  14. Save this file.

  15. Go to your site and reload the page to see the changes:


Feel free to check the detailed video tutorial below:

Magento. How to add static block to individual products pages

Best Magento Templates
This entry was posted in Magento Tutorials and tagged block, Magento, page, static. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket