Does commerce send an order notification email to site admin (site email) out of the box?

If not how do I do this?


It doesn't look like it does, no. There is, however, a rule set up to send the order notification to the user. It's called "Send an order notification e-mail".

You can easily clone this rule, but instead of sending the email to the owner of the order, send it to the admin's email address.

The admin user isn't available as a data selector for this rule, so you'll either have to expose it yourself somehow (not sure exactly how you'd do that without custom coding off the top of my head), or simply switch to 'direct input mode' and put the email address in manually.

| improve this answer | |
  • Perfect. site:mail was an available data selector. – sicko Jun 5 '12 at 20:05
  • Sweet, forgot about that one :) – Clive Jun 5 '12 at 20:06
  • site:mail is not available for me :-( – mb14 Jan 10 '13 at 11:20
  • @mb14 It definitely should be, that's one of the most basic tokens available through the data selector. It's a global token so should be there for every single rule – Clive Jan 10 '13 at 11:39
  • @clive: I might be missing something but the data selector (User for new entity : message) only displays site:current-user or commerce...user. If I enter manually site:mail I got an invalid value error – mb14 Jan 10 '13 at 15:01

If you want to include line items in the email to site admin, I'd recommend using https://drupal.org/project/commerce_email

Although the project page doesn't mention it, there are also dependencies on these modules: variable variable_email htmlmail

| improve this answer | |

You could "Clone" It's called "Send an order notification e-mail" and edit Data selector to site:mail (or switch to the direct mode to fill your e-mail address)

Good Luck friends :-)

| 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.