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
package/fesm5/ng-easycommerce.js
CHANGED
|
@@ -10626,7 +10626,12 @@ var ProductDetailService = /** @class */ (function () {
|
|
|
10626
10626
|
var asociated = {};
|
|
10627
10627
|
if (_this.isReady()) {
|
|
10628
10628
|
asociated.stock = _this.variants[0].stock;
|
|
10629
|
-
|
|
10629
|
+
if (_this.variants[0].priceWithoutTaxes) {
|
|
10630
|
+
asociated.price = _this.variants[0].priceWithoutTaxes.toString();
|
|
10631
|
+
}
|
|
10632
|
+
else {
|
|
10633
|
+
asociated.price = _this.variants[0].price.toString();
|
|
10634
|
+
}
|
|
10630
10635
|
asociated.saleprice = _this.variants[0].saleprice && _this.variants[0].saleprice.toString() || undefined;
|
|
10631
10636
|
asociated.discount = ((_a = _this.variants[0]) === null || _a === void 0 ? void 0 : _a.discount) || undefined;
|
|
10632
10637
|
asociated.properties = _this.variants[0].properties ? _this.beautifyProperties(_this.variants[0].properties) : undefined;
|
|
@@ -12392,6 +12397,9 @@ var PriceEcComponent = /** @class */ (function (_super) {
|
|
|
12392
12397
|
__decorate$1f([
|
|
12393
12398
|
Input()
|
|
12394
12399
|
], PriceEcComponent.prototype, "saleprice", void 0);
|
|
12400
|
+
__decorate$1f([
|
|
12401
|
+
Input()
|
|
12402
|
+
], PriceEcComponent.prototype, "priceWithoutTaxes", void 0);
|
|
12395
12403
|
__decorate$1f([
|
|
12396
12404
|
Input()
|
|
12397
12405
|
], PriceEcComponent.prototype, "priceSize", void 0);
|