Repository Forums Support WooCommerce Extended Coupon Features PRO Remove Coupon After Automatically Applied? Reply To: Remove Coupon After Automatically Applied?

#939
Soft79
Keymaster

If you’re familiar with PHP take a look at wjecf-autocoupon.php. This is the file that handles autocoupons.

You can get the “Remove” link back removing the filter woocommerce_cart_totals_coupon_label hooked by our plugin. If the user clicks remove you should somehow invalidate the coupon to prevent it from being automatically applied; for example you can have wjecf_coupon_can_be_applied return false by placing a marker in a cookie.