ng-easycommerce 0.0.618 → 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 +2 -0
- package/bundles/ng-easycommerce.umd.js +6 -2
- 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/services/products/product-detail.service.js +7 -3
- package/esm5/lib/services/products/product-detail.service.js +7 -3
- package/fesm2015/ng-easycommerce.js +6 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +6 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10612,8 +10612,12 @@
|
|
|
10612
10612
|
var asociated = {};
|
|
10613
10613
|
if (_this.isReady()) {
|
|
10614
10614
|
asociated.stock = _this.variants[0].stock;
|
|
10615
|
-
|
|
10616
|
-
|
|
10615
|
+
if (_this.variants[0].priceWithoutTaxes) {
|
|
10616
|
+
asociated.price = _this.variants[0].priceWithoutTaxes.toString();
|
|
10617
|
+
}
|
|
10618
|
+
else {
|
|
10619
|
+
asociated.price = _this.variants[0].price.toString();
|
|
10620
|
+
}
|
|
10617
10621
|
asociated.saleprice = _this.variants[0].saleprice && _this.variants[0].saleprice.toString() || undefined;
|
|
10618
10622
|
asociated.discount = ((_a = _this.variants[0]) === null || _a === void 0 ? void 0 : _a.discount) || undefined;
|
|
10619
10623
|
asociated.properties = _this.variants[0].properties ? _this.beautifyProperties(_this.variants[0].properties) : undefined;
|