This topic has 6 replies, 3 voices, and was last updated 3 years, 7 months ago ago by Olga Barlow
Good day.
May I know how do I hide the coupon column at checkout page?
I would like to prevent customer from keyin coupon manually.
Thank you.
Hello,
Add the next code in functions.php of your child theme via FTP:
function disable_coupon_field_on_checkout( $enabled ) {
if ( is_checkout() ) {
$enabled = false;
}
return $enabled;
}
add_filter( 'woocommerce_coupons_enabled', 'disable_coupon_field_on_checkout' );
Regards
.woocommerce-checkout .woocommerce-info {
display: none;
}
I checked previous history and found this, it works for me.
Do they function the same way?
Hello,
Custom CSS that you provided will hide all the WooCommerce notifications on the checkout page (not just coupon code).
Did you try to add PHP code that Rose suggested to child theme functions.php? Did not it work for you that you decided to use CSS?
Regards
–
Hello,
Sorry, I don’t understand your answer. So, did you try Rose’s code?
Regards
You must be logged in to reply to this topic.Log in/Sign up