foodbot-cart-calculations 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -994,7 +994,7 @@ function getFixedPriceProductOffer(cartObject, offer) {
|
|
|
994
994
|
var offerAmount = 0;
|
|
995
995
|
var singleItemCost = element.item_price;
|
|
996
996
|
|
|
997
|
-
const maxQty = offer.max_quantity || 1;
|
|
997
|
+
const maxQty = offer.max_quantity || offer.max_product || 1;
|
|
998
998
|
let remainingQty = maxQty - appliedQty;
|
|
999
999
|
const qtyToDiscount = Math.min(element.quantity, remainingQty);
|
|
1000
1000
|
|
package/package.json
CHANGED