Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I'm afraid neither frontend or adminhtml will work in my case. Thanks for your help though! Commented Dec 4, 2014 at 13:53
  • 1
    @DanHanly. Sorry. Apparently I'm not that good at shooting in the dark. At least you have a place to start debugging. layoutDirective is the start point. Commented Dec 4, 2014 at 13:55
  • 1
    The 'area' point was a good one, though it wasn't appropriate to add the it into the layout handle declaration. Before I begin adding parameters to the order, I needed to add the following line - $emailTemplate->setDesignConfig(['area' => 'frontend', 'store' => $storeId]); This meant that the email itself was configured to utilise a specific area. Your thought process led me to discover this answer, so thanks very much for that. Commented Dec 5, 2014 at 14:05
  • @DanHanly. AHA. I knew it was something about the area. Nice call on the the setDesignConfig. I learned something from this question also :). Commented Dec 5, 2014 at 14:15
  • 1
    @DanHanly. Thanks. But I feel a little bad that I didn't give a right answer. I feel like I don't really deserve the full bounty. :) Commented Dec 10, 2014 at 15:18