How to send order notification to the email address entered in the field
-
We have a product with PPOM fields, I want to send the same order notification as customer received to the email addresses which is entered on the filed on the product page.
I found the following code which sends the processing email to the given email address:
function add_another_email_recipients($recipient, $object) {
$recipient = $recipient . ‘, [email protected]’;
return $recipient;
}
add_filter( ‘woocommerce_email_recipient_customer_processing_order’, ‘add_another_email_recipients’, 10, 2);But, I don’t know how to replace the email “[email protected]” with the PPOM email field value.
Can anyone help me with this?
The page I need help with: [log in to see the link]
- The topic ‘How to send order notification to the email address entered in the field’ is closed to new replies.