WooCommerce Remove the Additional Information and Order Notes fields

WooCommerce Remove the Additional Information and Order Notes fields

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

<?php
  /* 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' , 'woocommerce_remove_order_notes' );

  function woocommerce_remove_order_notes( $fields ) {
       unset($fields['order']['order_comments']);
       return $fields;
  }
?>
Was this article helpful?
YesNo

8 comments

  1. It just works perfectly. I haven’t even needed to use the support it’s so simple and effective, so no idea if they’re any good or not on that front. I’ll just assume they’re very helpful 🙂

  2. I have put your code on construct method. see below code.

    public function __construct($plugin_name, $version) {

    $this->plugin_name = $plugin_name;
    $this->version = $version;

    add_filter( 'woocommerce_checkout_fields' , 'woocommerce_remove_order_notes' );
    }

    1. Update your this code with below code. You have to use $this object on call back function.

      public function __construct($plugin_name, $version) {

      $this->plugin_name = $plugin_name;
      $this->version = $version;

      add_filter( ‘woocommerce_checkout_fields’ , array($this, ‘woocommerce_remove_order_notes’) );
      }

Leave a comment

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