Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 715

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 715

Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 781

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 781

Deprecated: Required parameter $field follows optional parameter $name in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1052

Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1088

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1088

Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1140

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1140

Deprecated: Required parameter $field follows optional parameter $id in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-gallery.php on line 300
WooCommerce Remove the Additional Information and Order Notes fields - CodeXCoach
WooCommerce
May 26, 2020

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.

Related Post


Add Product to Cart Programmatically Woocommerce

We can add product to WooCommerce cart using add_to_cart() function with $product_id. Code goes in function.php file of your active child theme (or active theme).

WooCommerce Redirect to Custom Thank you Page

The below code allows you to redirect to a custom page after the user has successfully completed a purchase when using WooCommerce plugin. Simply add the below code to the active child theme function.php and replace the URL in the function wp_redirect() to the desired page.

Enable / Disable “Ship to a Different Address” WooCommerce

To make the default “Ship to Different Address” checkbox checked in WooCommerce Checkout page, add below code on functions.php file. Disable “Ship to A Different Address” on WooCommerce Checkout, add below code on functions.php file.

How do I change the link of the Return to shop button WooCommerce?

WooCommerce default redirect on shop page when Cart is empty. The filter woocommerce_return_to_shop_redirect makes it easy to change Return to shop link. Code goes in function.php file of your active child theme (or active theme).

Editing product data tabs on WooCommerce Product Page

You need to add the code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. Removing Tabs Use […]

Add a select field that will change price in Woocommerce simple products

To add a select field in simple products (like in variable products) that will update base price depending on the dopdown selected value, try this: Code goes in function.php file of your active child theme (or active theme).


8 responses to “WooCommerce Remove the Additional Information and Order Notes fields”

  1. Eric Jones says:

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

    • 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’) );
      }

  2. Eric Jones says:

    I want to use this code on plugins. Where am i put this code.

Leave a Reply

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