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
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;
}

The first filter woocommerce_enable_order_notes_field is returning false and will not display the ‘Additional Information’ heading.

 

The second filter woocommerce_checkout_fields is removing the order notes field.

Ref

 

11 Comments

  1. 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”?

  2. 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;
      }

  3. 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 ?

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

    Same here. I added css:

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

  5. 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

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

    Thanks dude. <3

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

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

  8. 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