#16986
Soft79
Keymaster

Not out-of-the-box, but you can create a coupon that applies the 10% discount and adds a free product and include a snippet like this one (untested) that will set the quantity of matching products to 0 if the cart amount < 200 : (Replace COUPON_CODE with the actual coupon code)


add_filter( 'wjecf_free_product_amount_for_coupon', function( $coupon_qty, $coupon ) {
  if ( strcasecmp( $coupon->get_code(), 'COUPON_CODE' ) === 0 ) { 
    $subtotal = WJECF_API()->get_subtotal_of_matching_products( $coupon ); 
    if ( $subtotal < 200 ) {
      $coupon_qty = 0;
    }
  }
  return $coupon_qty;
}, 10, 2);