This topic has 4 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Olga Barlow
i’d prefer not to have the coupon message on checkout (only cart page).
how do you recommend removing that copuon box “Have a coupon? Click here to enter your code
Hello,
Unfortunately, WooCommerce does not have option to hide it for the checkout page only.
Check this post https://wordpress.org/support/topic/disable-apply-coupon-in-cart-but-keep-in-checkout/
You may try something similar but for the checkout page.
Regards
i went ahead and added this to the functions.php file to remove coupon from checkout
// hide coupon field on checkout page
function hide_coupon_field_on_checkout( $enabled ) {
if ( is_checkout() ) {
$enabled = false;
}
return $enabled;
}
add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_checkout' );
Hello,
Great. I’m glad that solution works for you.
Regards
You must be logged in to reply to this topic.Log in/Sign up