Remove the Additional Information and Order Notes fields in WooCommerce

You can remove the Additional Information and Order Notes fields in WooCommerce checkout page with 2 filters that you add to your themes functions.php file

woocommerce-additional-order-notes

// Removes Order Notes Title - Additional Information & Notes Field
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );
// Remove Order Notes Field
add_filter( 'woocommerce_checkout_fields' , 'remove_order_notes' );
function remove_order_notes( $fields ) {
unset($fields['order']['order_comments']);
return $fields;
}

The first filter woocommerce_enable_order_notes_field is returning false and will not display the ‘Additional Information’ heading and also the order notes field, I have found it needs to be run with a high priority sometimes, that’s why I have added in the ‘9999’.

 

The second filter woocommerce_checkout_fields is removing the order notes field.

Ref

 

17 Comments

  1. ratan on July 12, 2019 at 10:58 am

    Hi
    // Removes Order Notes Title – Additional Information & Notes Field
    add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’, 9999 );

    // Remove Order Notes Field
    add_filter( ‘woocommerce_checkout_fields’ , ‘remove_order_notes’ );

    function remove_order_notes( $fields ) {
    unset($fields[‘order’][‘order_comments’]);
    return $fields;
    }
    this code working but not work with custom field

  2. Derek on May 10, 2019 at 4:37 am

    Worked like a charm. Thanks!

  3. Duncan on April 3, 2019 at 3:43 pm

    Works well, thank you for this!

  4. ZaacWilliam on March 24, 2019 at 12:56 am

    Works perfectly on my projects.. Thanks!

  5. Lens Ball on January 22, 2019 at 1:01 am

    Thank you – removing this line of info makes my customer’s checkout process that much more simpler.
    Really helpful!

  6. Dorina on November 9, 2018 at 2:49 pm

    Hi, thanks for the help.
    Do you also know how to add a call to action button on a product? I want to add a button which redirects to my payment instruction because I want to add DragonPay and Paymaya.

    Thank you! You are brilliant :)

  7. Pereira on August 15, 2018 at 7:53 pm

    How can I adjust the size of “billing details” to the entire screen after removing “additional information”?

  8. Jualn on August 13, 2018 at 3:47 pm

    hello there.

    I try your code.. it works. But “aditional information” title is still there.

    Do you know what happens?

    • Paste in functions.php (Shahan Baig) on October 1, 2018 at 4:41 pm

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

      //remove Order Notes Field
      add_filter( ‘woocommerce_checkout_fields’ , ‘remove_order_notes’ );

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

  9. Alexander on February 7, 2018 at 6:20 am

    I am trying to display the customer order details. I have seen an alternate method in the tutorial https://www.wpblog.com/display-woocommerce-customer-order-details/ to get customer details from orders but still having issues while displaying the order information. Can anyone tell me how can i implement this properly ?

  10. Salman khatri on December 17, 2017 at 8:28 pm

    Same here. I added css:

    .woocommerce-checkout #customer_details .col-2 {
    display: none;
    }

  11. leena meena on December 13, 2017 at 4:25 am

    I don’t have the order notes in my woocommerce checkout page. I actually need it as my customers will need to leave instructions to customize their product. How do I activate it?

    • Neil Gowran on December 13, 2017 at 5:40 am

      It maybe overridden by your theme, or already customized do a search in your theme for the code and reverse what has been done

  12. Lucas on November 10, 2017 at 4:33 pm

    Thanks dude. <3

  13. erik on September 26, 2016 at 12:57 pm

    Hi!
    Help me! How to hide a specific payment method in the checkout page?

  14. venky vadloori on February 15, 2016 at 6:56 am

    Hi, i have placed the above code in my function.php file,

    but not worrking.. why..?

Leave a Comment