@nuskin/ns-product-lib 2.8.2 → 2.8.3-cx24-4377.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/productData.js +4 -2
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [2.8.3-cx24-4377.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.2...v2.8.3-cx24-4377.1) (2023-06-27)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* adr promotion pricing (#CX24-4377) ([c1ea833](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/c1ea833d5b80da366e3dd0bd45cefcb18d096a34)), closes [#CX24-4377](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-4377)
|
7
|
+
|
1
8
|
## [2.8.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.1...v2.8.2) (2023-06-21)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -147,6 +147,7 @@ const ProductData = {
|
|
147
147
|
const productCVPrice = eventName ? CVPrice : eqVariant.priceFacets.CV;
|
148
148
|
const productPVPrice = eventName ? PVPrice : eqVariant.priceFacets.PV;
|
149
149
|
const wholeSalePrice = eventName ? defaultProductPrice : eqVariant.priceFacets["Wholesale Price"];
|
150
|
+
const wADRPrice = eventName ? computedPrice : eqVariant.priceFacets["Wholesale Price"];
|
150
151
|
|
151
152
|
return {
|
152
153
|
"sku": eqVariant.identifier,
|
@@ -260,7 +261,7 @@ const ProductData = {
|
|
260
261
|
"priceMap": {
|
261
262
|
"WRTL": productPrice,
|
262
263
|
"WADW-WRTL": productPrice,
|
263
|
-
"WADR":
|
264
|
+
"WADR": wADRPrice, //wholesale ADR (subscription) price
|
264
265
|
"RTL": productPrice,
|
265
266
|
"WWHL": wholeSalePrice,
|
266
267
|
"WADW": wholeSalePrice,
|
@@ -398,6 +399,7 @@ const ProductData = {
|
|
398
399
|
const productCVPrice = eventName ? CVPrice : product.priceFacets.CV;
|
399
400
|
const productPVPrice = eventName ? PVPrice : product.priceFacets.PV;
|
400
401
|
const wholeSalePrice = eventName ? discountedPrice : product.priceFacets["Wholesale Price"];
|
402
|
+
const wADRPrice = eventName ? computedPrice : product.priceFacets["Wholesale Price"];
|
401
403
|
|
402
404
|
|
403
405
|
product.childSkus = await this.fetchChildSkus(product);
|
@@ -444,7 +446,7 @@ const ProductData = {
|
|
444
446
|
"priceMap": {
|
445
447
|
"WRTL": productPrice, //regular | retail price
|
446
448
|
"WADW-WRTL": productPrice,
|
447
|
-
"WADR":
|
449
|
+
"WADR": wADRPrice, //wholesale ADR (subscription price)
|
448
450
|
"RTL": productPrice,
|
449
451
|
"WADW": wholeSalePrice,
|
450
452
|
"WHL": wholeSalePrice,
|