@nuskin/ns-product-lib 2.8.0-cx24-3684.3 → 2.8.0-cx24-3684.4

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.8.0-cx24-3684.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0-cx24-3684.3...v2.8.0-cx24-3684.4) (2023-04-17)
2
+
3
+
4
+ ### Fix
5
+
6
+ * product price (#CX24-3684) ([20fd37a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/20fd37a7710270e8186ee65070806813e465ce79)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
7
+
1
8
  # [2.8.0-cx24-3684.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0-cx24-3684.2...v2.8.0-cx24-3684.3) (2023-04-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.8.0-cx24-3684.3",
3
+ "version": "2.8.0-cx24-3684.4",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/product.js CHANGED
@@ -262,7 +262,7 @@ const Product = function (productData) {
262
262
 
263
263
  if (option.isEqPromotion) {
264
264
  //retain product.price as original price
265
- this.setPrice(this.price || this.getPricing(priceType));
265
+ this.setPrice(this.getPricing(priceType));
266
266
  this.setCv(this.getCvWithType(priceType));
267
267
  this.setPv(this.getPvWithType(priceType));
268
268
  this.priceType = priceType;
@@ -387,7 +387,7 @@ const ProductData = {
387
387
  const discountedPrice = eventName ? computedPrice : product.priceFacets["Wholesale Price"];
388
388
  const productCVPrice = eventName ? CVPrice : product.priceFacets.CV;
389
389
  const productPVPrice = eventName ? PVPrice : product.priceFacets.PV;
390
- const wholeSalePrice = eventName ? defaultProductPrice : product.priceFacets["Wholesale Price"];
390
+ const wholeSalePrice = eventName ? discountedPrice : product.priceFacets["Wholesale Price"];
391
391
 
392
392
 
393
393
  product.childSkus = await this.fetchChildSkus(product);