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

 

3 Comments

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

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

  2. 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: