WooCommerce Remove the Additional Information and Order Notes fields

WooCommerce Remove the Additional Information and Order Notes fields
53 Views

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

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.