From fb49b16bc6634578769cb06482c42c2d6faeb28c Mon Sep 17 00:00:00 2001 From: talalus Date: Fri, 9 Jul 2021 21:14:58 +0300 Subject: [PATCH] 573 include all groups tier prices to all customer groups --- src/helpers/priceTiers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/priceTiers.js b/src/helpers/priceTiers.js index 86bd72ab..a7cdc091 100644 --- a/src/helpers/priceTiers.js +++ b/src/helpers/priceTiers.js @@ -3,6 +3,7 @@ * @type {number} */ const NotLoggedUserGroupId = 0; +const AllUserGroupId = 32000; /** * Update product final price @@ -17,7 +18,7 @@ function updatePrices (productData, groupId) { const tier = productData.tier_prices[i]; // Check group - if (tier.customer_group_id === groupId) { + if (tier.customer_group_id === groupId || tier.customer_group_id === AllUserGroupId) { if (tier.qty === 1) { productData.specialPriceInclTax = 0;