WP SITES

3082 Coded Tutorials & 284 Plugins

Only Allow 1 Coupon Code On Cart & Checkout WooCommerce

$75.00
Watch Demo

This PHP code enables you to programmatically remove the coupon code field once the first coupon code is entered & applied. Customers cannot enter another coupon as the coupon box is removed at the same time as the 1st coupon is applied as seen in the demo video.

Note : You can use the WooCommerce Marketing > Coupons > Coupon Data > Usage Restriction > Individual use only setting to do the same thing however this code enables you to integrate usage with WooCommerce extensions and other conditions using PHP.

Installation

There’s only 1 step :

Copy & paste the PHP code to the end of your child themes functions file or custom functionality plugin.

Contact Us If You Have Any Questions

Go back

Your message has been sent

Warning
Warning
Warning
Warning.