Ask SkyVerge

Here’s a question we came across on the WooCommerce repository recently:

“The default behavior before the update was for the Add Note section to default to Note to Customer. We have part of our workflow expecting this and now there is an additional step changing the type of note.

Is there a way for us to change the default back to Note to Customer?”


The default option for adding an order note was changed in WooCommerce 2.4 from a “Note to Customer” to a “Private Note”.

If you’d like to default to a WooCommerce customer order note instead of a private order note, you can do so pretty easily by setting the default value via jQuery. We’ll set the default to “customer” to create a customer note by default instead of private note:

// Set customer notes as the default order note
function sv_default_customer_order_note() {
    if ( is_admin() ) {
        wc_enqueue_js('
            jQuery("select#order_note_type").val("customer");
        ');
    }
}
add_action( 'admin_init', 'sv_default_customer_order_note' );

This will still allow you to add either kind of note, and just changes which is selected by default.

WooCommerce customer order note

Published by Beka Rice

Beka leads product direction for SkyVerge, focusing on new features for our plugins and Jilt. She spends a lot of time on research and interviews, but likes to write so she has an excuse to spend more time jamming out to anything from The Clash to Lady Gaga.

6 Comments

  1. Great! Thanks a lot. Such small changes are really important for a lot of WC users.

  2. Thank you for another useful tip. I did notice the change made by WooCommerce and was going to live with it, if it was not for your email on how to change it to Customer.
    Appreciate you sharing the piece of code. Works beautifully!

  3. This was a good mod but it broke in WooCommerce 2.6.8
    Any suggestions on a fix?

Hmm, looks like this article is quite old! Its content may be outdated, so comments are now closed.