Order Confirmation Mail Subject
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Order Confirmation Mail Subject
hi.
The subject of the order confirmation mail gets translated even if the order is in default language.
So we end up with a mail body text in default language whereas the subject is in a different language.
any ideas?
Aimeos: 2022.10
The subject of the order confirmation mail gets translated even if the order is in default language.
So we end up with a mail body text in default language whereas the subject is in a different language.
any ideas?
Aimeos: 2022.10
Re: Order Confirmation Mail Subject
The code for generating the e-mail subject is located here:
https://github.com/aimeos/ai-controller ... d.php#L465
Please check if the translation is wrong.
https://github.com/aimeos/ai-controller ... d.php#L465
Please check if the translation is wrong.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)
Re: Order Confirmation Mail Subject
translation is ok.
it seems the language context is wrong.
same behavior with the delivery mail
subject and mailbody in different languages
it seems the language context is wrong.
same behavior with the delivery mail
subject and mailbody in different languages
Re: Order Confirmation Mail Subject
Language is used from the customer address in the order and is set here:
https://github.com/aimeos/ai-controller ... d.php#L436
This only works correctly, if the language is still active in the Locale > Language tab of the admin backend. Otherwise, the translation files for disabled languages are not added to the i18n object in the context and a fallback to English will occur.
The email body (html and text) is generated here:
https://github.com/aimeos/ai-controller ... #L466-L467
https://github.com/aimeos/ai-controller ... d.php#L436
This only works correctly, if the language is still active in the Locale > Language tab of the admin backend. Otherwise, the translation files for disabled languages are not added to the i18n object in the context and a fallback to English will occur.
The email body (html and text) is generated here:
https://github.com/aimeos/ai-controller ... #L466-L467
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)
Re: Order Confirmation Mail Subject
I see.
however, I think e-mail subject and e-mail body should always have the same language.
and anyway frontend user choice should overrule the address country.
I've commented it out and now it's fine.
thank you for pointing me there
however, I think e-mail subject and e-mail body should always have the same language.
and anyway frontend user choice should overrule the address country.
I've commented it out and now it's fine.
thank you for pointing me there
Re: Order Confirmation Mail Subject
I agree.
e.g. German in Finland (not speaking Finnish)
Ordering in Germany in German language.
Then it would be nice to keep the conversation in German - even the delivery address is in Finland.
![Lächeln :)](./images/smilies/icon_e_smile.gif)
Re: Order Confirmation Mail Subject
It doesn't depend on the country but on the selected language in the delivery address (if chosen)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)