1

I have created the static block in cms/static blocks

Then added the following code to catalog/product/view.phtml

<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘your_block_identifier’)->toHtml() ?>

also enabled Allow Symlinks in system > configuration > Developer > Template Settings

Is there any suggestions?

1
  • Please check store setting for this status block
    – Amit Bera
    Mar 30, 2016 at 9:42

1 Answer 1

3

change ` with '

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_identifier')->toHtml() ?>

Your Answer

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

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