@nuskin/ns-shop 7.5.6-mdigi-198.2 → 7.5.6-mdigi-4997.1
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
|
@@ -381,7 +381,6 @@ async function addProductToCart(options) {
|
|
|
381
381
|
options.product.lang = language;
|
|
382
382
|
options.product.language = language;
|
|
383
383
|
const eventName = options.product.eventName;
|
|
384
|
-
const backOrderDate = options.product.backOrderDate
|
|
385
384
|
|
|
386
385
|
let itemKey = cart.addProduct({
|
|
387
386
|
id: options.id,
|
|
@@ -403,7 +402,6 @@ async function addProductToCart(options) {
|
|
|
403
402
|
const item = itemKey ? cart.getItemByKey(itemKey) : null;
|
|
404
403
|
// eventName would get nulled out if sapItem
|
|
405
404
|
item.product.eventName = eventName;
|
|
406
|
-
item.product.backOrderDate = backOrderDate;
|
|
407
405
|
setCart(cart, item ? !item.isSapLineItem() : true);
|
|
408
406
|
return itemKey;
|
|
409
407
|
}
|
|
@@ -141,7 +141,6 @@ const createDataFromSkuSearch = (searchData, options) => {
|
|
|
141
141
|
product.benefits = searchData.benefits;
|
|
142
142
|
product.usage = searchData.usage;
|
|
143
143
|
product.resources = searchData.resources;
|
|
144
|
-
product.backOrderDate = searchData.backorderedAvailableDate;
|
|
145
144
|
// product.videos = searchData.???;
|
|
146
145
|
// product.contentSection =searchData.???;
|
|
147
146
|
// product.sizeWeight = ???;
|
|
@@ -395,7 +395,7 @@ function _assembleChildSkus(requestData, options) {
|
|
|
395
395
|
if (personalOffer !== null) {
|
|
396
396
|
personalOffer = JSON.parse(personalOffer);
|
|
397
397
|
productWithVariant = personalOffer.products.filter((sku) =>
|
|
398
|
-
sku.type === 'bundle' && sku.variantSelected !== null && sku.sku === productSku
|
|
398
|
+
sku.type.toLowerCase() === 'bundle' && sku.variantSelected !== null && sku.sku === productSku
|
|
399
399
|
)
|
|
400
400
|
}
|
|
401
401
|
|
|
@@ -411,18 +411,17 @@ function _assembleChildSkus(requestData, options) {
|
|
|
411
411
|
}
|
|
412
412
|
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL")) return null
|
|
413
413
|
const childSku =
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}
|
|
414
|
+
(personalOffer != null && selectedVariants && selectedVariants[cs.productId] && config?.MySite_graphql_active) ? {
|
|
415
|
+
productId: cs.productId,
|
|
416
|
+
skuId: selectedVariants[cs.productId],
|
|
417
|
+
type: cs.type,
|
|
418
|
+
availableChannels: cs.availableChannels
|
|
419
|
+
} : {
|
|
420
|
+
productId: cs.productId,
|
|
421
|
+
skuId: cs.skuId,
|
|
422
|
+
type: cs.type,
|
|
423
|
+
availableChannels: cs.availableChannels
|
|
424
|
+
}
|
|
426
425
|
if (cs.inventory) {
|
|
427
426
|
childSku.skuQuantity = cs.skuQuantity;
|
|
428
427
|
childSku.backOrdered = cs.inventory.backOrdered;
|