Here is a quick snippet to remove woocommerce coupon field from woocommerce cart page. When you enable the use of coupons, woocommerce adds the apply coupon form in cart and checkout page. For our customization want to remove woocommerce coupon field from cart page then place the following snippet in functions.php within your theme folder!.

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

Have any doubt, then comment here!

Leave a Reply

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