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.

3
  • I was thinking about using it in almost all email templates - to be more specific in their subjects. But as I see the more quicker and cleaner approach is to just create dedicated for emails custom variable with text value entered in html – then it's accessible everywhere without any reinventing of the wheel. Only hiccup is that there will be two same custom variables but one with i.e. email prefix. Commented Sep 5, 2015 at 18:18
  • @versedi hold one sec, let me check if there is an event you can use to inject them into every email\ Commented Sep 5, 2015 at 18:28
  • ok say there isn't an event but you could rewrite Mage_Core_Model_Email_Template_Filter from a custom module setting your vars in the _construct method or rewrite Mage_Core_Model_Email_Template setting them in the send method. It ain't perfect but it'll get the job done Commented Sep 5, 2015 at 18:31