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

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');
  • i used but it is displaying file content in between form tag. – Urvashi Sep 9 '15 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 Sep 9 '15 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 – Sander Mangel Sep 9 '15 at 13:05
  • can you pplease tell me how?with some code example. – Urvashi Sep 9 '15 at 13:40
  • I discribed exactly above what should be done – Sander Mangel Sep 9 '15 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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