/* Hide Coupon Field in Cart Page WooCommerce */
function wpflt_hide_coupon_field_woocommerce_cart_page ( $enabled ) {
if ( is_cart() ) {
$enabled = false;
}
return $enabled;
}
add_filter( 'woocommerce_coupons_enabled', 'wpflt_hide_coupon_field_woocommerce_cart_page' );
By Default Coupon Code Entry option appears on both Cart and Checkout Pages in WooCommerce. This can be annoying to customers. It creates confusion between the Actual cart value and the Discounted cart value.
If you want to disable the Coupon Entry Option on the Cart page and Enable it only on the Checkout Page, add the above code to your child theme’s functions.php.