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

 

8 Comments

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

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

    Same here. I added css:

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

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

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

    Thanks dude. <3

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

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

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





%d bloggers like this: