how to add static block to magento product description

how to add static block to magento product description

September 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
how to add static block to magento product description

Adding Static Blocks to Magento Product Descriptions

When you want to add static blocks to your Magento product descriptions, it’s important to do so in a way that maintains the integrity of your website’s structure and user experience. In this guide, we’ll walk through the steps needed to append a static block after the description section on every product page.

Identifying the Relevant Templates

In Magento 1.4.2, the default template for product pages is located at:

/app/design/frontend/default/default/template/catalog/product/view.phtml

This file contains the main structure for displaying product information, including the product description.

Adding Your Static Block

For this example, let’s say you have a static block with identifier your_block_identifier. To add this block after the product description on all product pages:

  1. Open the /app/design/frontend/default/default/template/catalog/product/view.phtml file in your favorite text editor or IDE.

  2. Locate the section where the product description is displayed. In Magento 1.4.2, you’ll find it near line 95-100, depending on any customizations:

<div class="product-short-description">
    <?php echo $this->helper('catalog/output')->productAttribute($product, $product->getShortDescription(), 'short_description') ?>
</div>
  1. Immediately after the </div> closing tag for the short description, add the following code:
<div class="additional-info-block">
    <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_identifier')->toHtml(); ?>
</div>
  1. Save and close the file.

Customizing the Appearance

To make this new block visually distinct from the rest of the product page, you can add some custom CSS:

  1. Open your theme’s stylesheet located at /skin/frontend/default/default/css/styles.css (or the appropriate path for your current theme).

  2. Add the following rules to define the appearance of the additional info block:

.additional-info-block {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    margin-top: 20px;
}
  1. Save and close the file.

Conclusion

By following these steps, you’ve successfully appended a static block to your Magento product descriptions without disrupting the flow of information on your pages. This approach maintains consistency across all products while providing customers with easy access to important supplementary details.

Remember that modifying core templates directly is generally discouraged in Magento development due to the risk of losing changes during updates. Consider using a theme or custom extension for more sustainable solutions, as recommended by Magento experts like those at Laravel Company.

For a comprehensive guide on maintaining and optimizing your Magento store, check out our services page where we provide expert consultations and ongoing support.

Magento 1 Catalog Themes Import/Export

Our network