WooCommerce: Hide “Order Notes” @ Checkout

Here’s a simple PHP snippet to remove the annoying “Order Notes” / “Additional Information” on the checkout page. This section can usually be found below the shipping form (or the billing form if you have no shipping). Thankfully, you just need 1 line of custom PHP!

WooCommerce Checkout Order Notes
WooCommerce Checkout Order Notes

PHP Snippet: Remove the Order Notes Field and “Order Notes” title from the Checkout Page – WooCommerce

/**
 * @snippet       Remove Order Notes - WooCommerce Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 5
 * @community     https://businessbloomer.com/club/
 */

add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce: Cart and Checkout on the Same Page
    This is your ultimate guide – complete with shortcodes, snippets and workarounds – to completely skip the Cart page and have both cart table and checkout form on the same (Checkout) page. But first… why’d you want to do this? Well, if you sell high ticket products (i.e. on average, you sell no more than […]
  • WooCommerce: Disable Payment Method If Product Category @ Cart
    Today we take a look at the WooCommerce Checkout and specifically at how to disable a payment gateway (e.g. PayPal) if a specific product category is in the Cart. There are two tasks to code in this case: (1) based on all the products in the Cart, calculate the list of product categories in the […]
  • WooCommerce: Add Privacy Policy Checkbox @ Checkout
    Here’s a snippet regarding the checkout page. If you’ve been affected by GDPR, you will know you now need users to give you Privacy Policy consent. Or, you might need customer to acknowledge special shipping requirements for example. So, how do we display an additional tick box on the Checkout page (together with the existing […]
  • WooCommerce: Redirect to Custom Thank you Page
    How can you redirect customers to a beautifully looking, custom, thank you page? Thankfully you can add some PHP code to your functions.php or install a simple plugin and define a redirect to a custom WordPress page (as opposed to the default order-received endpoint). This is a great way for you to add specific up-sells, […]
  • WooCommerce: Disable Payment Gateway by Country
    You might want to disable PayPal for non-local customers or enable a specific gateway for only one country… Either way, this is a very common requirement for all of those who trade internationally. Here’s a simple snippet you can further customize to achieve your objective. Simply pick the payment gateway “slug” you want to disable/enable […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

39 thoughts on “WooCommerce: Hide “Order Notes” @ Checkout

  1. I just want to set order note to read only, don’t hide it. Any suggestion?

    1. Hello Nur, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  2. Great article! How can I remove order notes for non-shipping products? So that it still shows for shipping items but not digital products like courses or downloads?

    Thank you!

    1. Hi Chris, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  3. Strangely this didn’t work for me.

    WP Version: 5.7.2
    WOO Version: 5.3.0
    PHP Version: 7.4
    Theme: Avada (Child)
    Theme Version: 7.3.1

    After reading the comments I found this line:

    add_filter( 'woocommerce_enable_order_notes_field', '__return_false' 9999 );

    which worked no problems.

    1. EDIT:

      add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );
      1. Cool, snippet updated

  4. Thanks for that Rodolfo, worked perfectly!

    Theme: Flatsome (Version: 3.12.3)

    Do you have an idea if it is possible not to allow a line break (no ENTER) in the Order Notes?
    I have problems exporting the order. The customers should not be able to enter a line break.
    Therefore I have hidden the Notes for the time being.

    1. Hey Engin, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  5. add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’ );

    Stops items from being added to cart in a pop out cart slider in Shoptimizer theme for me.

    1. Weird. Did you tell Shoptimizer support team?

  6. Hi Rodolfo,
    How can i hide the order notes if one payment method is selected ?

    1. Hi Yousoof, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  7. Thanks for that Rodolfo. Still working nel 2020 ๐Ÿ˜€

    1. Great!

  8. This is working also for me – WP 5.3.2 + WC 3.8.1:

    add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );
    1. Cool!

      1. Yeah, this one works for me,
        but the other one provided by post author didn’t work for me.
        Thanks man.

  9. Hi Rodolfo,

    This snippet still works beautifully on:
    – WordPress 5.2.2.
    – Divi 3.23.3
    – WooCommerce 3.6.5
    – Flywheel hosting w/ PHP 7.2

    Thanks so much!

    1. Excellent!

  10. it worked! thanks! ๐Ÿ˜‰
    Great tutorials. I have added your page to my favorites!

    1. Awesome, thanks Nathalie ๐Ÿ™‚

  11. Didn’t work for me ๐Ÿ™

    Here’s what I have:
    //remove Order Notes Field
    add_filter( ‘woocommerce_checkout_fields’ , ‘bbloomer_remove_checkout_order_notes’ );

    function bbloomer_remove_checkout_order_notes( $fields ) {
    unset($fields[‘order’][‘order_comments’]);
    return $fields;
    }

    // removes Order Notes Title – Additional Information
    add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’ );

    1. Hey Keely, thanks for your comment! Could you try with a different theme and let me know if it works please?

  12. Thanks for great solution,
    Still working in feb-2108

  13. Code snippet one should say:
    Remove the Order Notes field & โ€œOrder Notesโ€ title from the Checkout Page โ€“ WooCommerce.

    Code snippet two should say:
    Remove the Order Notes field, โ€œOrder Notesโ€ title and “Additional information” title from the Checkout Page โ€“ WooCommerce.

    There should also be a code snippet three that removes the column. col-2 so that col-1 has a width of 100%. I can do so through CSS but there is probably a better way of handling this.

    1. Thanks for that Paal ๐Ÿ™‚ To hide the shipping column with shipping enabled, CSS is your best bet, as WooCommerce needs to validate those fields. Hope this helps!

      1. Now that I think you can also “Force Shipping to Billing address” in the settings – that will remove the col 2 entirely

  14. Hi Rodofo
    It would be interesting to see a snippet on you site that:

    Hide [order] & [order comments] for all countries – excluding [selected countries or countries in the “zero tax” setting of woocommerce]

    Thank you for the great snippet insights you have provided so far

    1. Thanks Rob! I’ll see what I can do ๐Ÿ™‚

  15. Thank you, worked perfectly!

  16. Is there a way to move order notes above billing info

    1. Dragan, thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here on the blog. Thanks a lot for your understanding! ~R

  17. Hi Rodolfo
    I’ve just tried that. It will remove the field promptly, but not the title ‘Order Notes’ above that. How could be the title removed aswell? Thanks N

    1. Natasha, thanks for your feedback. Try use the following snippet and let me know if it works!

      add_filter( 'woocommerce_enable_order_notes_field', '__return_false' );
      
      1. Hi Rodolfo, works like a charm! Thanks

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *