ng-easycommerce 0.0.617 → 0.0.619
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/README.md +4 -0
- package/bundles/ng-easycommerce.umd.js +9 -1
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +4 -1
- package/esm2015/lib/services/products/product-detail.service.js +7 -2
- package/esm5/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +4 -1
- package/esm5/lib/services/products/product-detail.service.js +7 -2
- package/fesm2015/ng-easycommerce.js +9 -1
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +9 -1
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/widgets-ec/price-ec/price-ec.component.d.ts +1 -0
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -8746,7 +8746,12 @@ let ProductDetailService = class ProductDetailService {
|
|
|
8746
8746
|
let asociated = {};
|
|
8747
8747
|
if (this.isReady()) {
|
|
8748
8748
|
asociated.stock = this.variants[0].stock;
|
|
8749
|
-
|
|
8749
|
+
if (this.variants[0].priceWithoutTaxes) {
|
|
8750
|
+
asociated.price = this.variants[0].priceWithoutTaxes.toString();
|
|
8751
|
+
}
|
|
8752
|
+
else {
|
|
8753
|
+
asociated.price = this.variants[0].price.toString();
|
|
8754
|
+
}
|
|
8750
8755
|
asociated.saleprice = this.variants[0].saleprice && this.variants[0].saleprice.toString() || undefined;
|
|
8751
8756
|
asociated.discount = ((_a = this.variants[0]) === null || _a === void 0 ? void 0 : _a.discount) || undefined;
|
|
8752
8757
|
asociated.properties = this.variants[0].properties ? this.beautifyProperties(this.variants[0].properties) : undefined;
|
|
@@ -10290,6 +10295,9 @@ __decorate$1f([
|
|
|
10290
10295
|
__decorate$1f([
|
|
10291
10296
|
Input()
|
|
10292
10297
|
], PriceEcComponent.prototype, "saleprice", void 0);
|
|
10298
|
+
__decorate$1f([
|
|
10299
|
+
Input()
|
|
10300
|
+
], PriceEcComponent.prototype, "priceWithoutTaxes", void 0);
|
|
10293
10301
|
__decorate$1f([
|
|
10294
10302
|
Input()
|
|
10295
10303
|
], PriceEcComponent.prototype, "priceSize", void 0);
|