@nuskin/ns-shop 6.7.6 → 6.8.0
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.
- package/package.json +2 -2
- package/src/cart/cartService.js +2 -2
- package/src/order/orderAdapter.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/ns-shop",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "The description that will amaze and astound your audience when they read it",
|
|
5
5
|
"main": "src/shop.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@nuskin/ns-common-lib": "1.4.5",
|
|
27
27
|
"@nuskin/ns-feature-flags": "1.4.2",
|
|
28
28
|
"@nuskin/ns-loyalty-web": "1.5.6",
|
|
29
|
-
"@nuskin/ns-product-lib": "2.
|
|
29
|
+
"@nuskin/ns-product-lib": "2.12.0",
|
|
30
30
|
"@nuskin/nuskinjquery": "2.3.1",
|
|
31
31
|
"axios": "0.21.1",
|
|
32
32
|
"decimal.js": "10.2.1",
|
package/src/cart/cartService.js
CHANGED
|
@@ -809,7 +809,7 @@ async function checkItemAvailability() {
|
|
|
809
809
|
if (productInfo.equinoxProductId) {
|
|
810
810
|
qual = await QualificationService.getQualification(productInfo.equinoxProductId)
|
|
811
811
|
}
|
|
812
|
-
|
|
812
|
+
|
|
813
813
|
if (!qual){
|
|
814
814
|
qual = await QualificationService.getQualification(productInfo.sku)
|
|
815
815
|
}
|
|
@@ -905,7 +905,7 @@ function _getUserAddedItemSkus(userId, eid, cntryCd) {
|
|
|
905
905
|
*/
|
|
906
906
|
events.unsubscribe(events.salesevent.INITIAL_ACTIVE_EVENTS, onReceivedActiveEvents);
|
|
907
907
|
|
|
908
|
-
if (activeEvents.length > 0) {
|
|
908
|
+
if (getCachedConfigField('disableSalesEventSignupCheck') && activeEvents.length > 0) {
|
|
909
909
|
/*
|
|
910
910
|
If in an active event, skip the signup requirements network
|
|
911
911
|
call and proceed as though signup requirements have been met.
|
|
@@ -113,6 +113,14 @@ const populateItem = (order, salesOrder, shipImmediate, includeSapItems) => {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
if (item.subPriceFlag) {
|
|
117
|
+
sendItem.Custom.push({
|
|
118
|
+
Type: "SUB_PRICE",
|
|
119
|
+
Key: "SUB_PRICE",
|
|
120
|
+
Value: "X"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
salesOrder["Item"].push(sendItem);
|
|
117
125
|
|
|
118
126
|
if (splitItemByPoints) {
|
|
@@ -602,6 +610,8 @@ const syncProductItems = async (order, sapProducts, adr, includeSapItems) => {
|
|
|
602
610
|
name = custom.Value;
|
|
603
611
|
} else if (custom.Key === "LABEL") {
|
|
604
612
|
label = custom.Value;
|
|
613
|
+
} else if (custom.Key === 'SUB_PRICE') {
|
|
614
|
+
newItem.subPriceFlag = true;
|
|
605
615
|
}
|
|
606
616
|
});
|
|
607
617
|
if (code != null || name !== null || label != null) {
|