@crystaldesign/product-handler 24.12.0-rc.10 → 24.12.0-rc.12

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.
@@ -1275,7 +1275,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1275
1275
  //we use the addedPrice of the baseData as long as the calculatedPrice is the same as the SetPrice of the variant
1276
1276
 
1277
1277
  var ismanual = (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice) !== (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice);
1278
- var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : 0, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
1278
+ var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
1279
1279
  var addedPrice;
1280
1280
  if (SetPrice == baseData.calculatedPrice) {
1281
1281
  addedPrice = baseData.addedPrice;
@@ -1257,7 +1257,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
1257
1257
  //we use the addedPrice of the baseData as long as the calculatedPrice is the same as the SetPrice of the variant
1258
1258
 
1259
1259
  var ismanual = (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice) !== (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice);
1260
- var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : 0, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
1260
+ var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
1261
1261
  var addedPrice;
1262
1262
  if (SetPrice == baseData.calculatedPrice) {
1263
1263
  addedPrice = baseData.addedPrice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/product-handler",
3
- "version": "24.12.0-rc.10",
3
+ "version": "24.12.0-rc.12",
4
4
  "peerDependencies": {
5
5
  "@crystaldesign/basket-model": "*",
6
6
  "@crystaldesign/diva-utils": "*"
@@ -12,5 +12,5 @@
12
12
  "dependencies": {
13
13
  "classnames": "^2.5.1"
14
14
  },
15
- "gitHead": "3412092b8773f8d03298b6bedec8565faab5941f"
15
+ "gitHead": "b0cfa6ff4d0214118cd258c2b25b338d54190adb"
16
16
  }