Mercader Virtual Posted May 19, 2011 Share Posted May 19, 2011 Hi,I would like to know where can I set variables for mail templates. FOr example, payment.html is the template used to send an Email when payment status is set. I need to know where is the hook to add more variables.Any idea ?Thanks. Link to comment Share on other sites More sharing options...
seb776 Posted May 23, 2011 Share Posted May 23, 2011 You can also read this thread :http://www.prestashop.com/forums/viewthread/110512/development/add_a_field_in_email_template/ Link to comment Share on other sites More sharing options...
codegrunt Posted June 17, 2011 Share Posted June 17, 2011 Just as aside as I wasted some time sorting this out, although the mail templates look like Smarty templates, they are not. The Swift mail engine uses a simple search and replace mechanism (based around str_replace) so you cannot use Smarty constructs like "{if}foo{else}bar{/if}" or loops or anything like that. Not sure why this was done but that's how it is.That said, it probably would not be that hard to add in Smarty suppport to Swify by adjusting the "Decorator" plugin to call it.Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now