@nuskin/ns-shop 7.5.6-mdigi-198.1 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.5.6-mdigi-198.1",
3
+ "version": "7.5.6-mdigi-198.2",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -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
  }