We have three different customer groups with different customer managers for each group. Is there a way to send Woocommerce order confirmation emails to cusomer managers based on the group? For example:
- we have user role "Gold" for group 1. Customer manager has email gold@mysite.com
- another group is "Silver". Customer manager has email
silver@mysite.com
Now if customer from group 1 (Gold) makes an order then order notification email should be sent to gold@mystite.com. If customer from group Silver makes an oder then order notification should be sent to email silver@mysite.com
Currently we have tried this code snippet here, but it also sends email to admin. We would like to send email to admin if customer is none of the user roles described above.