A
A
Alexrzneiron2016-07-15 12:51:03
Email
Alexrzneiron, 2016-07-15 12:51:03

How to send order emails to different email addresses in woocommerce depending on the delivery zone?

Faced with the task of sending an order letter to woocommerce in such a way that when choosing a delivery zone, the recipient's mail would change to the mail of a specific zone.
3a5a3f33aa644165ac8be1c1d6061c41.jpg
All searches in Google led to nothing, the only thing I found

add_filter( 'woocommerce_email_recipient_customer_completed_order', 'your_email_recipient_filter_function', 10, 2);

function your_email_recipient_filter_function($recipient, $object) {
    $recipient = $recipient . ', [email protected]';
    return $recipient;
}

And then, this filter is not for the store, but for the buyer (order confirmation).
Maybe someone already faced with a similar problem? I would be grateful if you could share your experience)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question