I've created a custom module with custom transactional email.The layout handle does not work in the email that's being sent,

 {{layout handle="reviewreminder_order_email" order=$order}}

I've also tried setting the block directly

{{block type="core/template" template="pixl_reviewreminder/reminder.phtml" order=$order}}

Layout file

<?xml version="1.0"?>
<layout version="0.1.0">
        <block type="core/template" name="reviewreminder.email.items" template="pixl_reviewreminder/reminder.phtml" />

How can i debug the layout handle?


I'm using custom package and custom theme.How do I specify package name and theme name in layout handle.If I place the template in default/mytheme it works


You cannot specify the package name in the e-mail template. The layout is loaded from the current store, or the emulated store.
So if you place the layout file in the theme used by the store that is sending the e-mail then it should work.


I had the same problem, when I moved the template file to email folder an it works

<block type="core/template" name="reviewreminder.email.items" template="email/reminder.phtml" />

or you can use:

{{block type="core/template" template="email/reminder.phtml" order=$order}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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