@nuskin/ns-shop 6.7.5 → 6.7.7
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
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.
|
|
@@ -90,7 +90,12 @@ async function addProductToEquinoxCart(options) {
|
|
|
90
90
|
requestData = _assembleAdrProperties(requestData, options)
|
|
91
91
|
|
|
92
92
|
if (options.product.inventory === "BACKORDER") {
|
|
93
|
-
requestData.properties = {...requestData.properties,
|
|
93
|
+
requestData.properties = { ...requestData.properties, isBackOrdered: true }
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//check all skus
|
|
97
|
+
if (requestData.skus.some(item => item.backOrdered)) {
|
|
98
|
+
requestData.properties = { ...requestData.properties, isBackOrdered: true };
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
const equinoxRequestOptions = {
|
|
@@ -146,7 +151,12 @@ async function addBundleToEquinoxCart(productBundleSkus = []) {
|
|
|
146
151
|
bundleItem = _assembleChildSkus(bundleItem, { product: productItem })
|
|
147
152
|
|
|
148
153
|
if (productItem.inventory === "BACKORDER") {
|
|
149
|
-
bundleItem.properties = {...bundleItem.properties,
|
|
154
|
+
bundleItem.properties = { ...bundleItem.properties, isBackOrdered: true }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
//check all skus
|
|
158
|
+
if (bundleItem.skus.some(item => item.backOrdered)) {
|
|
159
|
+
bundleItem.properties = { ...bundleItem.properties, isBackOrdered: true };
|
|
150
160
|
}
|
|
151
161
|
|
|
152
162
|
bundleItems.push(bundleItem)
|
|
@@ -207,7 +217,7 @@ async function getEquinoxRequestConfiguration() {
|
|
|
207
217
|
const config = (await getConfiguration(['Equinox_Markets'])).Equinox_Markets;
|
|
208
218
|
|
|
209
219
|
// Use MySite_API_Base_URLs if it is in MySite or MSCART
|
|
210
|
-
const mySiteKongURL = (cartType === shoppingContextCartTypes.storefront || window.location.hostname.includes(".mynuskin.com")) ? config.MySite_API_Base_URLs :config.API_Base_URLs;
|
|
220
|
+
const mySiteKongURL = (cartType === shoppingContextCartTypes.storefront || window.location.hostname.includes(".mynuskin.com")) ? config.MySite_API_Base_URLs : config.API_Base_URLs;
|
|
211
221
|
|
|
212
222
|
const equinoxMarket = {
|
|
213
223
|
market_name: config.market_name,
|