You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if an email it set to be sent to the customer then the email is rendered in the order's orderLanguage which is the language of the site the order was made in from the front end. Any PDFs that were also attached to those emails were rendered in the same language.
Add following options to PDF setup:
Field Name: PDF Language
Description: Choose the language the PDF will be rendered with.
Dropdown options:
The language the order was made in
Site A Language
Site B Language
Site C Language
etc...
Add the following to Email setup:
If custom recipients is selected then show the following field:
Field Name: Email Language
Description: Choose the language the PDF will be rendered with.
Dropdown options:
The language the order was made in
Site A Language
Site B Language
Site C Language
etc
If "send to customer" is selected then "The language the order was made in" is set automatically.
In Emails::sendEmail() override the language as per the email settings.
In Pdfs::renderPdfForOrder() override the language as per the pdf settings.
The text was updated successfully, but these errors were encountered:
Yes please, we need the ability to set the email locale. We have an email template that goes to the admin after an order has been placed, but it is always sent in the locale of the person triggering the email... The shop has 5 languages, and if a French person orders something, the 'new order' notification email is sent to the admin in French, which he can't read.
We could of course make a static template that doesn't use the |t() filter for the admin notification, but in our case the email is quite complex with a lot of extending/includes and that wouldn't make DRY code.
Right now if an email it set to be sent to the customer then the email is rendered in the order's
orderLanguage
which is the language of the site the order was made in from the front end. Any PDFs that were also attached to those emails were rendered in the same language.Add following options to PDF setup:
Field Name: PDF Language
Description: Choose the language the PDF will be rendered with.
Dropdown options:
Add the following to Email setup:
If custom recipients is selected then show the following field:
Field Name: Email Language
Description: Choose the language the PDF will be rendered with.
Dropdown options:
If "send to customer" is selected then "The language the order was made in" is set automatically.
In
Emails::sendEmail()
override the language as per the email settings.In
Pdfs::renderPdfForOrder()
override the language as per the pdf settings.The text was updated successfully, but these errors were encountered: