Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Please Add Weight as a Constant › Reply To: Please Add Weight as a Constant
March 13, 2021 at 9:31 am #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.