@nuskin/ns-shop 7.5.5 → 7.5.6-mdigi-198.2
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,6 +381,7 @@ 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
|
|
384
385
|
|
|
385
386
|
let itemKey = cart.addProduct({
|
|
386
387
|
id: options.id,
|
|
@@ -402,6 +403,7 @@ async function addProductToCart(options) {
|
|
|
402
403
|
const item = itemKey ? cart.getItemByKey(itemKey) : null;
|
|
403
404
|
// eventName would get nulled out if sapItem
|
|
404
405
|
item.product.eventName = eventName;
|
|
406
|
+
item.product.backOrderDate = backOrderDate;
|
|
405
407
|
setCart(cart, item ? !item.isSapLineItem() : true);
|
|
406
408
|
return itemKey;
|
|
407
409
|
}
|
|
@@ -141,6 +141,7 @@ 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;
|
|
144
145
|
// product.videos = searchData.???;
|
|
145
146
|
// product.contentSection =searchData.???;
|
|
146
147
|
// product.sizeWeight = ???;
|