Magento Text Area Above Individual Products Using Custom Layout Design XML

I recently wanted to add a text area above a selection of products on a Magento site in order to advertise that they we on special offer.

The easiest way I found was to use Custom Layout Design in the product config | design area. Go to Catalog | Manage Products | Design

In the Custom Layout Update field add your XML… In my case I wanted to indicate the product was on special offer and to show the new prices with CSS line-through on the old prices – you can of course have whateven text or callout image you require:

Here is the code I used for to render the above image:




SPECIAL OFFER
10pcs  £12.95  £5.95    50pcs  £10.95  £4.95    100pcs  £9.50  £4.45    250pcs  £8.50  £3.95   

]]>

It is possible to have the area below the product by removing this code from the above:

before="-"

Enjoy!

1 comment
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Disable the Annoying Magento Notifications

Next Post

Using Magento – multiple stylesheets for Internet Explorer, Google Chrome etc.

Related Posts