diff --git a/changelog.md b/changelog.md index 4f856708c..8e11da263 100644 Binary files a/changelog.md and b/changelog.md differ diff --git a/packages/evershop/src/modules/promotion/services/registerDefaultValidators.js b/packages/evershop/src/modules/promotion/services/registerDefaultValidators.js index cbd750921..7e6ef49ef 100644 --- a/packages/evershop/src/modules/promotion/services/registerDefaultValidators.js +++ b/packages/evershop/src/modules/promotion/services/registerDefaultValidators.js @@ -86,14 +86,16 @@ module.exports.registerDefaultValidators = ) ? parseFloat(conditions.order_total) : null; - if ( - minimumSubTotal && priceIncludingTax - ? cart.getData('sub_total_incl_tax') - : cart.getData('sub_total') < minimumSubTotal - ) { - return false; + if (minimumSubTotal === null) { + return true; } - return true; + let check = false; + if (priceIncludingTax) { + check = cart.getData('sub_total_incl_tax') >= minimumSubTotal; + } else { + check = cart.getData('sub_total') >= minimumSubTotal; + } + return check; }, function minimumQtyValidator(cart, coupon) { const conditions = coupon.condition;