Hide Coupon Code Area on WooCommerce Cart Page

Nov 23, 2020 | WooCommerce Tips | 0 comments

Add the following PHP code to your child theme functions.php file.

// hide coupon field on the cart page
function disable_coupon_field_on_cart( $enabled ) {
	if ( is_cart() ) {
		$enabled = false;
	return $enabled;
add_filter( 'woocommerce_coupons_enabled', 'disable_coupon_field_on_cart' );


Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.