@nuskin/ns-shop 7.5.6-mdigi-198.1 → 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
|
@@ -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;
|