Hi i am developing a simple extension in which
i need to insert a new block on product page through xml file. Below is the xml file of my module
<layout version="0.1.0">
<total_index_index>
<reference name="root">
<action method="setTemplate"><template>page/2columns right.phtml</template></action>
</reference>
<reference name="content">
<block type="total/prototal" name="total_prototal" template="total.phtml" />
</reference>
</total_index_index>
</layout>
In this, layout is working on module index action and the content of total.phtml file is visible. I need to insert the content of total.phtml on product page.
So please suggest me how can i inset this on product page through xml.
Thanks
try this:
make sure this line must be exist in view.phtml file:
Hope this helps!
I assume you have file and folder in your design like this
In your local.xml you can add like below
Now in your
catalog/product/view.phtml
, call your custom blockBefore
Add