Magento 1.7 – How to Add Block to catalog_product_view Page

blockscataloglayoutmagento-1.7xml

enter image description hereMy XML code is here

<?xml version="1.0"?>
<layout version="0.1.0">
<catalog_product_view>
    <reference name="product.info">
        <block type="demo/demo" before="product.description" name="demo" template="demo/demo.phtml" />
    </reference>
</catalog_product_view>
</layout> 

i want to put my block under product.info and above product.description

i dont to change any core file and dont want to use getChildHtml method

Best Answer

try this:

<catalog_product_view>
        <reference name="alert.urls"> 
            <block type="total/prototal"  name="total_prototal" template="total.phtml" />  
        </reference>
</catalog_product_view>

make sure this line must be exist in view.phtml file:

<?php echo $this->getChildHtml('alert_urls') ?>

Hope this helps!