If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Magento. How to add static block to individual products pages

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:

    magento_add-cms-static-block-on-specific-product-detail-page-1

  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:

    magento_add-cms-static-block-on-specific-product-detail-page-2

  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="product.info"><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:

    magento_add-cms-static-block-on-specific-product-detail-page-3

  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:

    magento_add-cms-static-block-on-specific-product-detail-page-4

  14. Save this file.

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

    magento_add-cms-static-block-on-specific-product-detail-page-5

Feel free to check the detailed video tutorial below:

Magento. How to add static block to individual products pages

 
Live Chat
We help you to choose the right product.
Start chat