Support » Plugin: Boopis WooCommerce RFQ » reply-to email address change to billing_email

  • Resolved zgr81g

    (@zgr81g)


    Hello,

    Is it possible to change the reply-to address to the billing_email in the “New Quote (Admin)” message notification?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David

    (@boopis)

    The emails function just like wc order emails so if you look into that you should find the answer.

    How can we fix this?

    With the following code you need an ID, I can not find this in the templates?

    add_filter( 'woocommerce_email_headers', 'add_reply_to_wc_admin_new_order', 10, 3 );
    
    function add_reply_to_wc_admin_new_order( $headers = '', $id = '', $order ) {
        if ( $id == 'new_order' ) {
            $reply_to_email = $order->billing_email;
            $headers .= "Reply-to: <$reply_to_email>\r\n";
        }
        return $headers;
    }

    Just replacing the “new_order” with “new_quote” doesn’t work.

    Is there another way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘reply-to email address change to billing_email’ is closed to new replies.