Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there already a way to send an order confirmation email to the store owner's email address ? Or should this be integrated via rules ?
Comments
Comment #2
bojanz CreditAttribution: bojanz commentedThere are no rules in D8.
In your order type settings (for example, "admin/commerce/config/order-types/default/edit"), below the "Email the customer a receipt when an order is placed" checkbox you have "Send a copy of the receipt to this email:", specify the store admin's email there and they will get a copy.
Comment #3
klagler CreditAttribution: klagler commentedThanks for your answer. So I have to setup an own Order-type for every store if there are different store owners ?
Comment #4
bojanz CreditAttribution: bojanz commentedIt would make more sense to write custom code that alters the email before it's sent and add the email from the store entity as CC.
This is a use case we can improve in Commerce in the long run, so turning this issue into a feature request (we can offer a radio-button selection between store admin and a custom email that shows the current element).
Comment #5
tormiThis is clearly a marketplace model's issue.
Comment #6
Razunter CreditAttribution: Razunter commenteddeleted
Comment #7
maurizio.ganovelliMaybe this small module in sandbox could help: https://www.drupal.org/sandbox/blackice78/3056912
Comment #8
msypes CreditAttribution: msypes commented@bojanz: Where would one hook into the system to send such a CC?
I started off thinking that email would be the "from" for the receipt, but so far, the system seems to use the site's default email, and I can't tell that the store email is used for anything at all.
Comment #9
imclean CreditAttribution: imclean at Digital Ink commentedAs per #4 you'll probably need to write some custom code. Subscribing to the transition commerce_order.place.post_transition could be a good place to start.
Comment #10
msypes CreditAttribution: msypes commentedThanks, @imclean!
Comment #11
PhilYAs per comment #7, the Commerce BCC Address Token module works fine.
It allows adding the store email as BCC recipient and has since been officially published.