Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Please Add Weight as a Constant › Reply To: Please Add Weight as a Constant

#17398
Soft79
Keymaster

Instead of removing the coupon you could use filter woocommerce_coupon_is_valid and let it throw an Exception(“The coupon does not apply to the total cart weight”) if the cart weight does not match.

Maybe I’ll add a weight setting in the future.