Add CMS Static Block After Add to Cart in Magento 1.9

addtocartcms-blockmagento-1.9

I've been trying to add a static block to individual product pages, below the add to cart button, using "Product > Design > Custom Layout Update".

I've tried various versions of the code below, but without any success.

<reference name="content">
<block type="cms/block" name="wetsuits" before="product.info.addtocart">
    <action method="setBlockId"><block_id>wetsuits</block_id></action>
</block>  
</reference>

I'm using 1.9.1.0, any help is greatly appreciated.

Best Answer

You should change reference name to 'product.info':

<reference name="product.info">
    <block type="cms/block" name="wetsuits" before="product.info.addtocart">
        <action method="setBlockId"><block_id>wetsuits</block_id></action>
    </block>  
</reference>

And then add to catalog/product/view.phtml file in your template this code:

<?php echo $this->getChildHtml('wetsuits'); ?>
Related Topic