Fri. Apr 25th, 2025

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

1 min read
  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:
    1
    <reference name=”left”>

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

  5. Add the following code right below the reference:
    1
    2
    3
    4
    <block type=”cms/block” name=”contact_info” before=”-“><br>
             <action method=”setBlockId”><block_id>contact_info</block_id></action><br>
             </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”:
    1
    <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:

April 2025
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
282930