Here is a quick snippet to remove woocommerce coupon field from woocommerce checkout page. When you enable the use of coupons, woocommerce adds the apply coupon form in cart and checkout page. For our customization want to remove woocommerce coupon field from checkout page then place the following snippet in functions.php within your theme folder!.
function hide_coupon_field_on_woocommerce_checkout( $enabled ) { if ( is_checkout() ) { $enabled = false; } return $enabled; } add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_woocommerce_checkout' );
Have any doubt, then comment here!
wow, awesome article post.
Thank you 🙂