Friday, April 4, 2014

Magento -- How to Use PHTML File in CMS or Static Block

In Magento CMS or Static block, if you want to add PHP code then you can just call any custom .phtml file by using following code. Like here I am including my_custom.phtml.

{{block type="core/template" name="myCustom" template="cms/my_custom.phtml"}}

No comments:

Post a Comment