@nuskin/ns-shop 7.8.1 → 7.8.2-pa-933.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cart/cart.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.8.1",
3
+ "version": "7.8.2-pa-933.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": {
@@ -26,7 +26,7 @@
26
26
  "@nuskin/ns-common-lib": "1.4.8",
27
27
  "@nuskin/ns-feature-flags": "1.5.0",
28
28
  "@nuskin/ns-loyalty-web": "1.5.7",
29
- "@nuskin/ns-product-lib": "2.21.0",
29
+ "@nuskin/ns-product-lib": "2.21.1-pa-933.1",
30
30
  "@nuskin/nuskinjquery": "2.3.1",
31
31
  "@nuskin/order-model": "3.1.3",
32
32
  "@nuskin/product-lib": "2.4.0",
package/src/cart/cart.js CHANGED
@@ -281,6 +281,8 @@ export default function Cart(cartData) {
281
281
  if (cartItem.isAgelocme()) {
282
282
  product.agelocme = cartItem.product.agelocme;
283
283
  }
284
+ const eventNames = product.eventName ? [product.eventName] : null;
285
+ product.setPriceAndPvFromType(cartItem.product.priceType, eventNames);
284
286
  cartItem.product = product;
285
287
  publish(events.shop.CART_UPDATED, {
286
288
  modify: {