Magento – How to add template in Custom Variable HTML Value in magento

custom-variableemail-templatesmagento-1.9

I have created a custom variable in magento. But I want to call a template file for this variable value.

For this I am using

{{block type="core/template" template="custom/my.phtml"}}

in Variable HTML Value field.

But when adding this variable in any email template like {{customVar code=my_var}} then print

{{block type="core/template" template="custom/my.phtml"}}

as it is.

How to add a template file in custom variable HTML value?

Best Answer

you can add your phtml file in email template simple add the like this and add your coding in template.phtml.

{{block type='core/template' area='frontend' template='my/template.phml'}}