Skip to content
Conditional product page static blocks for Magento 1
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Extension Overview

Magento 1.

This extension facilitates "conditional" placement of content blocks, on product pages, based on product attributes, category, and/or date range.


In your theme's template/catalog/product/view.phtml file, add the following 3 snippets where you would like the block content to display:

<?php echo $this->getLayout()->createBlock('psa_dyblocks/dyblock')->setPosition('product_notes_top')->toHtml(); ?>

<?php echo $this->getLayout()->createBlock('psa_dyblocks/dyblock')->setPosition('product_block_top')->toHtml(); ?>

<?php echo $this->getLayout()->createBlock('psa_dyblocks/dyblock')->setPosition('product_block_bottom')->toHtml(); ?>

These positions (product_notes_top, product_block_top, product_block_bottom) are presented as options, when creating a block in the admin.

Creating/Editing a Dynamic Block

  1. In the Magento Admin, navigate to CMS > PSA Dynamic CMS Blocks.

  2. To create a new block click the Add New Dynamic Block button, to edit an existing block click one in the list.

  3. Fill-in the form, as necessary. The position on page option locations will be determined by the placement, within the template, in Installation.

  4. Conditions: block will display if product matches ALL conditions.

You can’t perform that action at this time.