WooCommerce: Hide coupon box on checkout page if a coupon is already applied
Posted on
This might be outdated!
Here is a quick snippet to make things a bit less confusing for your customers in your WooCommerce store. When you enable the use of coupons, WooCommerce adds a field on the cart page, and a box notice on the checkout page.
But, if you enter a coupon in the cart page, and apply that coupon to the order, the notice is still displayed on the checkout page.
That could be confusing for your customers, and they could think that the coupon has NOT been applied, which is not correct. So, here is a snippet that will hide that box on the checkout page if a coupon has already been applied to cart:
Simply place that snippet in functions.php within your theme folder!
About the author
Related Posts
1 comment
Leave a Reply
You must be logged in to post a comment.
Thanks Remi!
It works like a charm even on the latest woo version!
Honestly, it should be included by default…