ng-easycommerce 0.0.576 → 0.0.577
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 +9 -8
- 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/cart-ec/cart-ec.component.js +10 -9
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +10 -9
- package/fesm2015/ng-easycommerce.js +9 -8
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +9 -8
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/cart-ec/cart-ec.component.d.ts +1 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/ng-easycommerce.js
CHANGED
|
@@ -7303,14 +7303,6 @@ var CartEcComponent = /** @class */ (function (_super) {
|
|
|
7303
7303
|
cantidad > 0 && cantidad <= stock ? _this.cartService.updateItemQuantity(item, cantidad) : _this.toastrService.show('out-of-stock-actually');
|
|
7304
7304
|
}
|
|
7305
7305
|
};
|
|
7306
|
-
_this.redirectCheckout = function () {
|
|
7307
|
-
if (_this.cartService.hasSufficientCreditsForCartTotal()) {
|
|
7308
|
-
_this.router.navigateByUrl("/checkout");
|
|
7309
|
-
}
|
|
7310
|
-
else {
|
|
7311
|
-
console.warn("No se puede redirigir al checkout debido a una validación fallida.");
|
|
7312
|
-
}
|
|
7313
|
-
};
|
|
7314
7306
|
_this.redirectRegister = function () { return _this.router.navigateByUrl("/auth/login"); };
|
|
7315
7307
|
_this.getVariants = function (product) {
|
|
7316
7308
|
var item = product.product;
|
|
@@ -7374,6 +7366,15 @@ var CartEcComponent = /** @class */ (function (_super) {
|
|
|
7374
7366
|
// console.log(this.cartService.getTaxes());
|
|
7375
7367
|
this.ecOnInit();
|
|
7376
7368
|
};
|
|
7369
|
+
CartEcComponent.prototype.redirectCheckout = function () {
|
|
7370
|
+
if (this.cartService.hasSufficientCreditsForCartTotal()) {
|
|
7371
|
+
this.router.navigateByUrl("/checkout");
|
|
7372
|
+
}
|
|
7373
|
+
else {
|
|
7374
|
+
console.warn("No se puede redirigir al checkout debido a una validación fallida.");
|
|
7375
|
+
}
|
|
7376
|
+
};
|
|
7377
|
+
;
|
|
7377
7378
|
CartEcComponent.prototype.openModal = function (template) {
|
|
7378
7379
|
this.modalRef = this.modalService.show(template, { class: 'modal-xl', keyboard: false });
|
|
7379
7380
|
};
|