• Resolved bomybanez

    (@bomybanez)


    Hi Woo-commerce Development team,

    Good day!

    I would like to ask, if we can modify the note to customer email notification. I want to add 2 more emails as a default. So every time there’s a new note to customer. This 2 added emails will be notify also.

    Please help.

    Thanks.
    Regards,

    Bom Ybanez

    https://wordpress.org/plugins/woocommerce/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    add_filter( 'woocommerce_email_recipient_customer_note', 'custom_woocommerce_email_recipient_customer_note' );
    
    function custom_woocommerce_email_recipient_customer_note( $emails ) {
    $emails .= ',cc@email.com';
    return $emails;
    }
    Thread Starter bomybanez

    (@bomybanez)

    Thanks you Mike Jolley

    Thread Starter bomybanez

    (@bomybanez)

    The Email is working already.

    I received a notification but the there’s no note to customer text included in there? is it possible that we can add it there the note to customer text?

    thank you in advance

    Plugin Contributor Mike Jolley

    (@mikejolley)

    This just cc’s in an address to the usual note email..Content is not changed.

    Thread Starter bomybanez

    (@bomybanez)

    Hi Mike,

    Good day!

    Thank you for response.

    I had a problem from the customers email who ordered, can’t receive anymore after I add that code.

    can you help on this.

    Thank you so much.

    Bom

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    @bomybanez how did you applied the code?

    Thread Starter bomybanez

    (@bomybanez)

    @claudio

    Yes I used it. The code works but the customer who ordered can no longer receive an email.

    When I removed that code the customer can received an email notification.

    Please help!

    Thank bro.

    Thread Starter bomybanez

    (@bomybanez)

    My Plan is to add new recipient email to receive a notification when someone added a note to customer.

    so there will be 3 receivers of email notification at the same time:

    1. default admin email
    2. customers email
    3. new recipient email (this is what I wanted to add)

    thank you @claudio

    Thread Starter bomybanez

    (@bomybanez)

    @claudio

    This is what I add the code:

    I added it into the funtions.php under the child theme.

    ———————

    add_filter( ‘woocommerce_email_recipient_customer_note’, ‘custom_woocommerce_email_recipient_customer_note’ );

    function custom_woocommerce_email_recipient_customer_note( $emails ) {
    $emails .= ‘sales@company.co.uk’;
    return $emails;
    }

    ———————

    Plugin Contributor Mike Jolley

    (@mikejolley)

    That code looks fine but you’re missing a comma before the email.

    Thread Starter bomybanez

    (@bomybanez)

    Thank you so much. It works now!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Note to Customer Modification’ is closed to new replies.