Posted: January 29, 2019 at 11:09 am
|
Hi there, Can you please point me the code location that getting the selected email message template before sending after the payment is completed? or is there any filter or action hook to override the email message template? |
Hi there, From the above I’m not sure which email you are referring to, assuming you have one of the emails after it has been sent can you let me know the ‘subject’ of the email, please? The emails can be edited rom within the admin: Event Espresso -> Messages -> Default message templates. But which email you need to edit isn’t clear. After the payment is made and the registration switches to Approved would be the ‘Registration Approved’ message type. |
|
|
Hello Tony, The reason I am asking for the code is that we need to add e.g French Version of Registration Approved. I understand this plugin does not support translation. Thanks. |
|
Hi Tony, can you please help? Thanks |
Hi there, I’ve requested some feedback from our developers on this to confirm. However, just to note, EE does support translation, you can use EE in multiple languages, but you can only currently use a single language across the install, nor multiple languages. I’m curious as to how you have this set up, do you have a say an English event, and then another event in French? (which are essentially the same event just translated?) If so you can just create a custom message template and assign the correct template to each individual event. The English event would obviously the English template assigned to it, the French has the French template and there’s no need to add additional code. Or do you have this setup differently? |
|
|
Hi Tony, Thank you for your reply. In order to display an English and French for the Event properly, I am writing the script to render the event and use PO file to do some translation using the WPML plugin. for the email, I cannot find the location that gets the selected email message template before sending after the payment is completed. I would like to detect that action so I can switch an English template to French’s. Please let me know if you have any news for us. It is quite urgent. |
Hi terabit, I checked with our developers and currently, there’s no way to filter the template used in the way you need to as it stands. I’ve created a feature request ticket to see if we can add one in a future version. |
|
|
Thank you Tony |
The support post ‘Email Template Location’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.