Hide Coupon Code Field in WooCommerce

WooCommerce has a global setting to disable the use of coupons. Some sites would rather hide the field and allow users to add coupon codes via other methods, such as a URL attribute. This code recipe disables the “Coupon Code” field shown on the WooCommerce cart page.

Hide Coupon Code Field on WooCommerce Checkout Page

The Code Recipe

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. We have a post on how to create a customizations plugin on our partner website, Paid Memberships Pro.

Before and After Screenshots

WooCommerce Cart Screenshot with a Visible Coupon Code Field
WooCommerce Cart Screenshot with a Visible Coupon Code Field
WooCommerce Cart Screenshot with No Coupon Code Field
WooCommerce Cart Screenshot with No Coupon Code Field

Run a Better Sale with WooComerce

Sitewide Sales is a new way to run sales for your WordPress-powered ecommerce site. Using Sitewide Sales, you can set up an active promotion that runs from your set start time and end time.

The plugin automatically applies discounts according to the rules you set up—no coding required. If you want to run a true sale that automatically applies a discount without the need for manual coupon entry, you need try the Sitewide Sales plugin—it works with WooCommerce and other popular ecommerce plugins for WordPress.

SHARE YOUR LOVE
Kim Coleman
Kim Coleman

Hi! I'm Kim Coleman, an internet entrepreneur from Reading, PA. I've been working with WordPress for over 15 years. In 2011, I founded Paid Memberships Pro, a complete plugin for Recurring Subscriptions and Content Restriction with 100k active sites. I'm currently working on our new product, Sitewide Sales.

Articles: 35