Categories

Featured templates

Magento. How to add static blocks to product details pages (starting from template 55000+)

Eva Fox November 18, 2015
Rating: 5.0. From 2 votes.
Please wait...

This tutorial will show you how to add static blocks to product details pages of your Magento store (starting from template 55000+).

Magento. How to add static blocks to product details pages (starting from template 55000+)

  1. Log into your Magento admin panel.

  2. Navigate to CMS -> Static Block -> Add New Block:

    Magento. How to add a static blocks to product details pages_1

  3. Create a static block. We will use “contact_info” as block Identifier:

    Magento. How to add a static blocks to product details pages_2

  4. After that open the file app/design/frontend/tm_themes/themeXXX/layout/local.xml, where XXX is your theme number. Find the reference below:

    <reference name="left">

    Magento. How to add a static blocks to product details pages_3

  5. Add the following code right below the reference:

    <block type="cms/block" name="contact_info" before="-">
    <action method="setBlockId"><block_id>contact_info</block_id></action>
    </block>

    Magento. How to add a static blocks to product details pages_4

  6. In case your template comes with right sidebar area, you should find the reference name “right”:

    <reference name="right">
  7. Make sure to replace “contact_info” identifier with your own one.

  8. Save the file. Clear Magento cache. Navigate to product page to see the changes:

    Magento. How to add a static blocks to product details pages_5

Feel free to check the detailed video tutorial below:

Magento. How to add static blocks to product details pages (starting from template 55000+)

Responsive Magento Themes
This entry was posted in Magento Tutorials and tagged block, Magento, page, product, 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