How to call phtml file in CMS Page in Magento

Topics focus on Web Developments, Programming, Database, Digital Marketing Tutorials, Code Snippets, SEO, Social Media Marketing and Inspirational articles.

How to call phtml file in CMS Page in Magento

How to call phtml file in CMS Page in Magento

How to call phtml file in CMS Page in Magento

You can call a phtml file in CMS Page or a Static Block in a very simple way using a line of code.

1
{{block type="core/template" template="templatename/path/filename.phtml"}}

For example, if you want to call your newproducts.phtml file that resides in catalog -> product folder in your template folder use the below line of code:

1
{{block type="catalog/product" template="catalog/product/newproducts.phtml"}}

Hope this helps to solve someone’s problem ! For any other queries please feel free to write us at icorethink@gmail.com

Add comment


 

Pin It on Pinterest

Share This