1

I want to call my cms static block on product detail page above price ,

I have added the below code via admin category > custom design .

{{block type="cms/block" block_id="my_block_here"}}

Can anyone help me ,Where i goes to wrong.

  • what you have try can you please let me know in detail? – Keyul Shah Mar 30 '15 at 5:26
1

Issue: You cannot set product details page layout from Category >custom design tab.

For show a static block at product detail and want to set this cms block from admin .Then you need to goto admin>Catalog>Manage Product > select any product and Goto if it design tab and put this code

<reference name="product.info">
<block type="cms/block" name="mystaticblock" >
<action method="setBlockId"><block_id>YOUR_BLOCK_ID</block_id></action>
</block>
</reference>

As product detail page main layout template is view.phtml, and it doesn't render it child block automatically, so on catalog/product/view.phtml add those code block by <?php echo $this->getChildHtml('mystaticblock')?> for render te block.

Note: from admin manage you can only set cms block for one page.

  • i do not want to do any code changes can i do in some layout update to make it work – user1799722 Mar 30 '15 at 5:37
  • want for all proudcts of specific product – Amit Bera Mar 30 '15 at 5:51
  • yeah ......................... – user1799722 Mar 30 '15 at 5:52
  • want for all proudcts or specific product – Amit Bera Mar 30 '15 at 5:53

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