Question

I want to add my phtml between description.phtml and attributes.phtml using custom module

my xml file

<?xml version="1.0"?>
<layout>
    <catalog_product_view translate="label">
        <reference name="content">
            <block type="example/product_view_detail" name="example_detail">
                <action method="setTemplate"><template>example/catalog/product/view/detail.phtml</template></action>
            </block> 
        </reference>
    </catalog_product_view>
</layout>

how to add this phtml in view.phtml?

enter image description here

Was it helpful?

Solution

That only change in xml file

Replace this

<reference name="product.info">

with

<reference name="content">

Add this content in reference tag

<action method="addToParentGroup"><group>detailed_info</group></action>
<action method="setTitle" translate="value"><value>Information</value></action>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top