• ScottCodes

    (@scottlush)


    Hi,

    Does WooCommerce have a way for the admin (or other designated user) to get an email when any order has a “Customer Provided Note” attached to it?

    This is the field in WooCommerce’s /checkout where the customer can add “Order Notes” It has the placeholder text “Notes about your order, e.g. special notes for delivery.”

    (Note: we’re not referring to the separate “Order Notes” field that show records of payment, status changes, manual admin notes, etc.). We’re referring to the field that the customer themselves enter at checkout.

    This would save us A LOT of time scanning our orders because maybe only 1 in 100 orders has a “Customer Provided Note.”

    We checked online everywhere but couldn’t find an answer.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • did you ever get an answer to this, we’re seeing this issue now where we don’t get notification of this.

    can’t seem to find the hook for the admin email etc.

    Thread Starter ScottCodes

    (@scottlush)

    We haven’t resolved this issue but it looks like someone might have here:
    https://premium.wpmudev.org/forums/topic/notification-of-customer-notes-in-woocommerce

    Maybe try this in functions.php (from the bottom of that page):

    function woo_email_customer_message( $order_id ) {
    $order = new WC_Order( $order_id );
    var_dump($order);
    if( $order->customer_note != ” ) {

    $to = ‘contact@example.com’;
    $subject = ‘New Order Completed with Notes!!! :)’;

    $message = ‘A new order has been completed.’;
    $message .= ‘Order ID: ‘.$order_id.”;
    $message .= $order->customer_message;
    @wp_mail( $to, $subject, $message, $headers );
    }
    }
    add_action( ‘woocommerce_thankyou’, ‘woo_email_customer_message’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How is admin notified when customer adds “Customer provided note” at checkout?’ is closed to new replies.