Skip to main content
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

There is no fallback mechanism for the e-mail templates.
I mean there is one, but not the way you want it.
The e-mail templates are searched in app/locale/{lang_ISO}/template/email/.
If the template is not found then it searches in the app/locale/en_US/template/email/.
That's the whole fallback mechanism.

But if you need some templates that depend on the theme, then you can do it like the sales e-mails do it.
Include this in the e-mail template located in app/locale/de_DE/template/email/sales/mymail.html.

{{layout handle="my_email_layout_handle"}}

You can even pass some variables to it like this

{{layout handle="my_email_layout_handle" var1=$var1 var2=$var2}} 

where $var1 and $var2 are variables you pass to the email template itself.

Now in one of your layout files create the layout handle you used above.

<my_email_layout_handle>
    <block type="core/template" template="my_email/template.phtml" />
</my_email_layout_handle>

Then create the template file my_email/template.phtml in your theme (or themes) where you can fill in your content.

Read this for more detailsRead this for more details

There is no fallback mechanism for the e-mail templates.
I mean there is one, but not the way you want it.
The e-mail templates are searched in app/locale/{lang_ISO}/template/email/.
If the template is not found then it searches in the app/locale/en_US/template/email/.
That's the whole fallback mechanism.

But if you need some templates that depend on the theme, then you can do it like the sales e-mails do it.
Include this in the e-mail template located in app/locale/de_DE/template/email/sales/mymail.html.

{{layout handle="my_email_layout_handle"}}

You can even pass some variables to it like this

{{layout handle="my_email_layout_handle" var1=$var1 var2=$var2}} 

where $var1 and $var2 are variables you pass to the email template itself.

Now in one of your layout files create the layout handle you used above.

<my_email_layout_handle>
    <block type="core/template" template="my_email/template.phtml" />
</my_email_layout_handle>

Then create the template file my_email/template.phtml in your theme (or themes) where you can fill in your content.

Read this for more details

There is no fallback mechanism for the e-mail templates.
I mean there is one, but not the way you want it.
The e-mail templates are searched in app/locale/{lang_ISO}/template/email/.
If the template is not found then it searches in the app/locale/en_US/template/email/.
That's the whole fallback mechanism.

But if you need some templates that depend on the theme, then you can do it like the sales e-mails do it.
Include this in the e-mail template located in app/locale/de_DE/template/email/sales/mymail.html.

{{layout handle="my_email_layout_handle"}}

You can even pass some variables to it like this

{{layout handle="my_email_layout_handle" var1=$var1 var2=$var2}} 

where $var1 and $var2 are variables you pass to the email template itself.

Now in one of your layout files create the layout handle you used above.

<my_email_layout_handle>
    <block type="core/template" template="my_email/template.phtml" />
</my_email_layout_handle>

Then create the template file my_email/template.phtml in your theme (or themes) where you can fill in your content.

Read this for more details

Source Link
Marius
  • 198.5k
  • 55
  • 424
  • 833

There is no fallback mechanism for the e-mail templates.
I mean there is one, but not the way you want it.
The e-mail templates are searched in app/locale/{lang_ISO}/template/email/.
If the template is not found then it searches in the app/locale/en_US/template/email/.
That's the whole fallback mechanism.

But if you need some templates that depend on the theme, then you can do it like the sales e-mails do it.
Include this in the e-mail template located in app/locale/de_DE/template/email/sales/mymail.html.

{{layout handle="my_email_layout_handle"}}

You can even pass some variables to it like this

{{layout handle="my_email_layout_handle" var1=$var1 var2=$var2}} 

where $var1 and $var2 are variables you pass to the email template itself.

Now in one of your layout files create the layout handle you used above.

<my_email_layout_handle>
    <block type="core/template" template="my_email/template.phtml" />
</my_email_layout_handle>

Then create the template file my_email/template.phtml in your theme (or themes) where you can fill in your content.

Read this for more details