0

I want to call a phtml file after content (form tag) on product details page. See the screenshot.

enter image description here

After this form I want to call a phtml file.

1 Answer 1

1

In your local template either find the catalog.xml or a local.xml layout file and add the following

<catalog_product_view>
    <reference name="product.info">
        <block type="core/template" name="your.block.name" template="customefolder/demo.phtml"/>
    </reference>
</catalog_product_view>

Now in the catalog/product/view.phtml you can call it where ever you want

echo $this->getChildHtml('your.block.name');
14
  • i used but it is displaying file content in between form tag.
    – Urvashi
    Commented Sep 9, 2015 at 12:45
  • <reference name="content"> <block before="content" type="core/template" name="demo" template="demo.phtml"/> i used like this it showing before from which is displaying before product info(just after header part)
    – Urvashi
    Commented Sep 9, 2015 at 12:50
  • That's correct. the content block starts just after the header. product.info should place it in the form if you call it there Commented Sep 9, 2015 at 13:05
  • can you pplease tell me how?with some code example.
    – Urvashi
    Commented Sep 9, 2015 at 13:40
  • I discribed exactly above what should be done Commented Sep 9, 2015 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.