Magento 1.9 Static Banner – How to Display on Top of Product Page

magento-1.9

Here is the image of what I am trying to achieve
static banner of product page

How this can be done?

Best Answer

You can also manage with static block, create one static and put image or content there and this static block call on your theme product view file :

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

Open above file and past this code

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_identifier')->toHtml(); ?> 

above

<div class="product-view">

this div so exectly you get your satic block content as you need.

Now, this solution is for every product show same content , but if you need for some product show this banner or content then you need to put product id condition so you show banner specific product.

hope it help of you.

Related Topic