@nuskin/ns-shop 7.7.0-mdigi-6056.1 → 7.7.0-mdigi-6056.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.7.0-mdigi-6056.1",
3
+ "version": "7.7.0-mdigi-6056.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": {
package/src/cart/cart.js CHANGED
@@ -1414,7 +1414,10 @@ export default function Cart(cartData) {
1414
1414
  'name': flatItem.title,
1415
1415
  'id': flatItem.sku,
1416
1416
  'price': flatItem.price,
1417
- 'quantity': Math.abs(diffQty)
1417
+ 'quantity': Math.abs(diffQty),
1418
+ 'sales_price': flatItem.salesPrice,
1419
+ 'unit_price': flatItem.unitPrice,
1420
+ 'product_image_url': flatItem.fullImage
1418
1421
  });
1419
1422
 
1420
1423
  function getCartInfo(options) {
@@ -376,6 +376,7 @@ export default function CartItem(cartItemData) {
376
376
  retVal.size = this.product.size;
377
377
  retVal.variants = this.product.variants;
378
378
  retVal.marketAttributes = this.product.marketAttributes;
379
+ retVal.product_image_url = this.product.fullImage;
379
380
  retVal.salesPrice = AccountManager.isLoggedIn()? this.salesPrice() : null;
380
381
  retVal.unitPrice = AccountManager.isLoggedIn()? this.unitPrice() : null;
381
382