@cloudcommerce/app-discounts 2.41.11 → 2.41.12
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.
|
@@ -298,7 +298,7 @@ export default async ({ params, application }) => {
|
|
|
298
298
|
}
|
|
299
299
|
return 0;
|
|
300
300
|
});
|
|
301
|
-
|
|
301
|
+
// prevent applying duplicated kit discount for same items
|
|
302
302
|
let discountedItemIds = [];
|
|
303
303
|
// check buy together recommendations
|
|
304
304
|
const buyTogether = [];
|
|
@@ -389,6 +389,7 @@ export default async ({ params, application }) => {
|
|
|
389
389
|
if (
|
|
390
390
|
discount.type === 'fixed'
|
|
391
391
|
&& kitDiscount.cumulative_discount !== false
|
|
392
|
+
&& kitDiscount.min_quantity > 1
|
|
392
393
|
&& !kitDiscount.usage_limit
|
|
393
394
|
) {
|
|
394
395
|
discount.value *= Math.floor(totalQuantity / kitDiscount.min_quantity);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-discounts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.41.
|
|
4
|
+
"version": "2.41.12",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app for complex discount rules",
|
|
6
6
|
"main": "lib/discounts.js",
|
|
7
7
|
"files": [
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/discounts#readme",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
26
|
-
"@cloudcommerce/api": "2.41.
|
|
26
|
+
"@cloudcommerce/api": "2.41.12"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/types": "2.41.
|
|
29
|
+
"@cloudcommerce/types": "2.41.12"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "bash ../../../scripts/build-lib.sh"
|