Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Sometimes while copying the code the format of the single quotes will get changed. Could you please remove the single and provided it once again in the code and verify whether it is working fine or not?

    Thank you!

    Thread Starter Abhilesh

    (@johndoe23292)

    Hi,

    The code works fine. I my 1st attempt I didn’t get email but it works later.
    I have one more question, Is this possible to sent email to this custom field only not to account email id?

    Thanks
    Abhilesh

    Plugin Author ThemeHigh

    (@themehigh)

    If you need the admin new order email to be sent to the email Id filled in the field buyers_email, then you can add the following code to active theme/child theme’s functions.php.

    add_filter('woocommerce_email_recipient_new_order', 'additional_email_checkout', 10, 2);
    function additional_email_checkout($emails, $object){
    	$additional_email = get_post_meta($object->id, 'buyers_email', true);
    	return $additional_email ? $additional_email : $emails;
    }

    We hope this will help.

    If we have misunderstood your exact requirement, please clarify us with more details.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Send woocommerce emails on custom email field’ is closed to new replies.