The coupon field on the WooCommerce checkout page isn’t always necessary. If your store doesn’t use coupons or you want a cleaner checkout experience, you can easily remove the coupon form using a simple code snippet.
Steps
- Open your theme’s
functions.phpfile. - Add the code snippet below.
- Save the file.
- Refresh the checkout page.
Done — the coupon form will no longer appear during checkout.
function hide_checkout_coupon_form( $enabled ) {
return false;
}
add_filter(
'woocommerce_coupons_enabled',
'hide_checkout_coupon_form'
);