@nuskin/ns-product-lib 2.7.0-cx24-337703.1 → 2.7.0-cx24-337705.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [2.7.0-cx24-337705.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.0-cx24-337703.1...v2.7.0-cx24-337705.1) (2023-03-23)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Added override flag for equinox products ([d098245](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/d098245007f453e33cae8fb574dad61fadfc1e5e))
7
+ * Added override flag for equinox products ([2f4af3d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2f4af3d5f7fcfa14f23c9cd18eacfaaa9262e0a0))
8
+
1
9
  # [2.7.0-cx24-337703.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.2-cx24-337703.1...v2.7.0-cx24-337703.1) (2023-03-22)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.7.0-cx24-337703.1",
3
+ "version": "2.7.0-cx24-337705.1",
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
@@ -325,10 +325,15 @@ const Product = function(productData) {
325
325
  return this.addCvWithType(csvKey, productStatus.csv[csvKey]);
326
326
  }, this);
327
327
  }
328
- this.orderTypes = ProductUtils.mergeOrderTypes(this.orderTypes, productStatus.orderType);
329
- if(productStatus.childSkus) {
330
- this.childSkus = productStatus.childSkus;
328
+
329
+ //dont override orderTypes and childSkus when product came from equinox
330
+ if(!this.equinoxProductId) {
331
+ this.orderTypes = ProductUtils.mergeOrderTypes(this.orderTypes, productStatus.orderType);
332
+ if(productStatus.childSkus) {
333
+ this.childSkus = productStatus.childSkus;
334
+ }
331
335
  }
336
+
332
337
  this.setPriceAndPvFromType(priceType, null, option);
333
338
  modified = true;
334
339
  } else {