Hello,
I have a Drupal commerce setup with three languages, french, dutch and english but for some obscure reason when an anonymous user checks out on the french or english page he/she always receives the confirmation e-mail in dutch (witch is the default language for the site).
I translated the messages the system is supposed to send in the account settings as usual using i18n variables, but those translation aren't used on anonymous checkout.
When creating a new account on the other hand the account notification e-mails are translated as they should be.
Has this something to do with the rule: "Create a new account for an anonymous order".
I couldn't find anything related to this subject in this issue thread and since it seem related to the anonymous checkout I think this is the right place to ask, so please help...
Comments
Comment #1
selfirian commentedOk I found a solution... it was indeed the rule I mentioned, I'm posting my solution, it might save some-one some time :)
I added an action after the create a new entity rule:
the "set a data value" action I added has as parameter: Data[account-created:language] and value: [site:current-page:language]
Here's the export of my modified rule:
Comment #2
rszrama commentedGreat, thanks for sharing.
Comment #3
selfirian commentedYour welcome, glad to contribute.