Hide the Coupon Form on Checkout
Removes the "Have a coupon?" prompt from the classic checkout page. Customers can still apply coupons on the cart page.
Opens WPIDE on
Code
add_action( 'wp', function () {
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.