1

I have an on-line store using the Drupal Commerce module. When the checkout is done the buyer get an *email notificatio*n. So far so good.

My problem is that the website is multilingual (english, french and spanish) then I need to send the email notification in the correct language.

To accomplish with this I think of:

1) creating 3 different rules, one for each language at: admin/commerce/config/checkout/rules.

2) Each rule would have a condition to compare the user current language and an action to send the email notification in the correct language

3) Then when checkout is done the correct rule should be fired to send an email in the appropriated language

Is there any other way to do it?

1

Look at Commerce Email:

  • Adds a configuration page for the order email
  • Email content can be entered into textarea/wysiwyg (if available) form
  • Email content can also be set to be loaded from a template file: commerce-order-email.tpl.php
  • Allows the insertion of the order items into the email, token addition: [commerce-email:order-items]
  • Supports Commerce Shipping
  • Allows different language versions of each email
  • Optional administrator email
| improve this answer | |
  • I will check the module. But not sure if I will install 3 modules to do this. This module require Variable_email and Htmlmail modules. – chefnelone Feb 22 '12 at 10:01
  • You ask for other way, not for a better way ;-). In fact variable_email and htmlmail also have requirement : variable and mail_system. – druvik Feb 22 '12 at 10:21
  • commerce email works very well. – chefnelone Feb 28 '12 at 7:32
0

I think Commerce Message is a better alternative now. It allows messages to be translated, and sent using the current site language (with Rules)... so it won't be necessary to create 3 different rules. It requires message and message_notify so it is free from variable & htmlmail.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.