WooCommerce Remove Coupon Code Field From Cart


There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About This Solution

This snippet allows you to remove the coupon code form field from only the cart page – leaving it on display on the checkout.

 * Snippet Name:	WooCommerce Remove Coupon Code Field From Cart
 * Snippet Author:

function ecommercehints_remove_coupon_code_cart_field( $enabled ) {
	if ( is_cart() ) {
		$enabled = false;
	return $enabled;
add_filter( 'woocommerce_coupons_enabled', 'ecommercehints_remove_coupon_code_cart_field' );

Snippet Benefits

  • Encourage users to navigate to the checkout by removing the distracting coupon code field on the cart page.

100 WooCommerce Conversion Rate Optimisation Tips

This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Need to outsource WordPress development?

Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.

First Timer Here?

Sign up to receive 20% off on your first month with us.