@nuskin/ns-product-lib 2.5.0-cx24-2179.2.3 → 2.5.0-cx24-2179.2.4
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/product.js +2 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.5.0-cx24-2179.2.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.3...v2.5.0-cx24-2179.2.4) (2022-12-05)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* added eq promoion bypass for setPriceAndPvFromType v2 (#CX24-2179) ([25bde9a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/25bde9a8e19b1e4e44e37457dfb087e0a6212ee1)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
|
7
|
+
|
1
8
|
# [2.5.0-cx24-2179.2.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.2...v2.5.0-cx24-2179.2.3) (2022-12-05)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/product.js
CHANGED
@@ -232,6 +232,7 @@ const Product = function(productData) {
|
|
232
232
|
// : (_priceType ? _priceType : this.priceType),
|
233
233
|
const priceType = _priceType ? _priceType : this.priceType;
|
234
234
|
const eventPricing = getEventPricing(this, priceType, _activeEvents);
|
235
|
+
console.log({context: 'NsProductLib.setPriceAndPvFromType', eventPricing: eventPricing});
|
235
236
|
|
236
237
|
let changed = false;
|
237
238
|
if ((
|
@@ -249,6 +250,7 @@ const Product = function(productData) {
|
|
249
250
|
|
250
251
|
if (option.isEqPromotion) {
|
251
252
|
//retain product.price as original price
|
253
|
+
this.setPrice(eventPricing.price || this.getPricing(priceType));
|
252
254
|
this.setCv(this.getCvWithType(priceType));
|
253
255
|
this.setPv(this.getPvWithType(priceType));
|
254
256
|
this.priceType = priceType;
|