Skip to content

palmettostatearmory/psa_dyblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Extension Overview

Magento 1.

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

Installation

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.

About

Conditional product page static blocks for Magento 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages