How to Remove the Coupon Code Fields from Your WooCommerce Store

WooCommerce has the ability to let you setup coupon codes to offer to your customers that give them discounts on their purchases. You can actually disabling these site wide by going into the “Settings” options of your WooCommerce installation and browsing to the “General” tab to find the coupon options.

Disable Coupons in WooCommerce
Disable Coupons in WooCommerce by unchecking the box under “General” in Settings

All you have to do is uncheck the “Enabled the use of coupons” box and your entire site will remove the coupon code fields. It’s just that easy.

But what if you want to let customers use coupons but you want greater control over where they can be applied. By default, WooCommerce will give your users the option to apply coupon codes when they are viewing their carts and when they are completing the checkout process.

Coupon Code Fields in WooCommerce
An example of Coupon Code Fields in WooCommerce

You can remove the coupon code field with by editing a file that your WordPress theme uses or you can use our Remove WooCommerce Features plugin to handle it without writing any code or uploading any files on your server directly.

How to Remove Coupon Fields from WooCommerce Cart and Checkout with Code

You’re going to need to add some lines of code to your theme’s functions.php file if you want to disable the coupon field yourself. You can find functions.php inside your WordPress theme’s main directory. Download the file to your local machine and open it in a text editor. Go down to the bottom and add the following code if you want to remove the field from your cart page:

add_filter( 'woocommerce_coupons_enabled', 'my_remove_coupon_code_field_cart', 10 );
my_remove_coupon_code_field_cart( $enabled ) {
    if ( is_cart() ) {
        $enabled = false;
    return $enabled;

If you want to remove the coupon code field from your checkout page then the code you need to add is much simpler:

remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );

Remember that you don’t need to add both chunks of code. The first is for the cart page only and the second is for the checkout. It’s also important to keep in mind that sometimes changes to your functions.php file can be temporary depending on how your WordPress theme is setup. Updates to your theme can and often will overwrite any changes that have been made so you’ll have to go through this process again if that happens to you.

Anyone afraid of modifying their theme, or inexperienced with the process, should think about hiring a professional WordPress developer to help out or consider using our Remove WooCommerce Features plugin.

How to Remove Coupon Code Fields from WooCommerce without Modifying Your Theme

Our plugin, Remove WooCommerce Features, will let you remove the coupon code fields from your cart and checkout pages with just a few clicks of your mouse. Once you have purchased the plugin and installed it on your site the process is simple.

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says “Remove Features.”

WooCommerce Admin Menu

Step #2

Find the setting for “Coupon Code Fields” and click the checkbox next to the correponding field you want removed so that it’s marked like so:

Remove WooCommerce Features - Coupon Code Fields

Step #3

Press the “Save Settings” button.

Save Settings Button

Job complete. Your site will immediately stop showing your customers the coupon code field on whichever page you chose to remove it from.

This setting will remain no matter how many times you update or change your WooCommerce theme as well. You’ll never have to worry about editing files or paying freelancers by the hour to do that kind of work for you again.

Remove WooCommerce Features supports disabling a whole collection of capabilities that are enabled by default with most themes. You can use our plugin to:

Our plugin works with over 20 WooCommerce features now. You can review the full list here on our site to learn more.