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

klagler created an issue. See original summary.

bojanz’s picture

Category: Feature request » Support request
Status: Active » Fixed

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

klagler’s picture

Thanks for your answer. So I have to setup an own Order-type for every store if there are different store owners ?

bojanz’s picture

Title: Order confirmation to store owner » Allow sending a copy of the order receipt to the store email
Category: Support request » Feature request
Status: Fixed » Active

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

tormi’s picture

This is clearly a marketplace model's issue.

Razunter’s picture

deleted

maurizio.ganovelli’s picture

Maybe this small module in sandbox could help: https://www.drupal.org/sandbox/blackice78/3056912

msypes’s picture

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

imclean’s picture

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

msypes’s picture

Thanks, @imclean!

PhilY’s picture

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