1

i want to add custom block just below media view more on product detail page, see below image :http://159.8.132.20/Untitled2.png

i want to do it vai admin > category layout update or via mdoule :

below is my code:

<reference name="content">
    <block type="core/template" name="test" template="handtryon/a.phtml" after="product.info.media"></block>
</reference>

no i am able to see contents of a.phtml on product detail page but it show below product tabs i want it below media view more i think something to do with after="product.info.media"

1 Answer 1

1

You can not manage product page layout from admin > category layout update.

and can only manage from this admin>catalog>Manage Product> Custom design tab.

As per as default magento,you need add code <?php echo $this->getChildhtml('test')?> at view.phtml because of all template at view do not render automatically.

Also,you need to change reference name from content to product.info

3
  • no i am able to see contents of a.phtml on product detail page but it show below product tabs i want it below media view more i think something to do with after="product.info.media" Commented Apr 6, 2015 at 8:38
  • yeah but my content shows from my above method Commented Apr 6, 2015 at 9:42
  • cannot understand
    – Amit Bera
    Commented Apr 6, 2015 at 21:01

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.