Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Please Add Weight as a Constant
Could you please add weight targets in coupon settings please. you use cart count so
get_cart_contents_weight() shouldn’t be too much of issue to add
Presently we we check weight and programically apply the coupon code and then programically remove the coupon
Would love to see weight as option in coupon settings
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.