WooCommerce: Hide coupon box on checkout page if a coupon is already applied

Remi | April 22, 2015 | in WooCommerce

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!

The author

About the author Remi: Hey! My name is RĂ©mi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

One comment

Leave a reply