@nuskin/ns-shop 7.0.11-cx24-7213.2 → 7.0.11-cx24-7213.4
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
CHANGED
|
@@ -47,8 +47,7 @@ function _getEquinoxSession() {
|
|
|
47
47
|
method: 'GET',
|
|
48
48
|
endpoint: 'customers'
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
console.log("Equinox session");
|
|
50
|
+
return _equinoxRequest(equinoxRequestOptions)
|
|
52
51
|
|
|
53
52
|
// const customerSession = sessionStorage.getItem('customerSession') ? JSON.parse(sessionStorage.getItem('customerSession')) : ''
|
|
54
53
|
// if (customerSession === '') {
|
|
@@ -57,20 +56,7 @@ function _getEquinoxSession() {
|
|
|
57
56
|
// } else {
|
|
58
57
|
// return null
|
|
59
58
|
// }
|
|
60
|
-
|
|
61
|
-
let customerSession = sessionStorage.getItem('customerSession');
|
|
62
|
-
if (!customerSession) {
|
|
63
|
-
console.log("No session found, creating a new one");
|
|
64
|
-
return _equinoxRequest(equinoxRequestOptions).then(response => {
|
|
65
|
-
sessionStorage.setItem('customerSession', JSON.stringify(response.data));
|
|
66
|
-
return response;
|
|
67
|
-
});
|
|
68
|
-
} else {
|
|
69
|
-
console.log("Session found");
|
|
70
|
-
return Promise.resolve(JSON.parse(customerSession));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// return _equinoxRequest(equinoxRequestOptions);
|
|
59
|
+
|
|
74
60
|
|
|
75
61
|
}
|
|
76
62
|
|
|
@@ -420,7 +406,7 @@ function _assembleChildSkus(requestData, options) {
|
|
|
420
406
|
if(personalOffer != null && productWithVariant.length > 0 && productWithVariant[0].variantSelected){
|
|
421
407
|
selectedVariants = productWithVariant[0].variantSelected;
|
|
422
408
|
}
|
|
423
|
-
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL")) return null
|
|
409
|
+
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL" && cs.type !== "SKUKIT")) return null
|
|
424
410
|
const childSku =
|
|
425
411
|
(personalOffer != null && selectedVariants && selectedVariants[cs.productId] && config.MySite_graphql_active)
|
|
426
412
|
? {
|