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/README.md
CHANGED
|
@@ -7289,14 +7289,6 @@
|
|
|
7289
7289
|
cantidad > 0 && cantidad <= stock ? _this.cartService.updateItemQuantity(item, cantidad) : _this.toastrService.show('out-of-stock-actually');
|
|
7290
7290
|
}
|
|
7291
7291
|
};
|
|
7292
|
-
_this.redirectCheckout = function () {
|
|
7293
|
-
if (_this.cartService.hasSufficientCreditsForCartTotal()) {
|
|
7294
|
-
_this.router.navigateByUrl("/checkout");
|
|
7295
|
-
}
|
|
7296
|
-
else {
|
|
7297
|
-
console.warn("No se puede redirigir al checkout debido a una validación fallida.");
|
|
7298
|
-
}
|
|
7299
|
-
};
|
|
7300
7292
|
_this.redirectRegister = function () { return _this.router.navigateByUrl("/auth/login"); };
|
|
7301
7293
|
_this.getVariants = function (product) {
|
|
7302
7294
|
var item = product.product;
|
|
@@ -7360,6 +7352,15 @@
|
|
|
7360
7352
|
// console.log(this.cartService.getTaxes());
|
|
7361
7353
|
this.ecOnInit();
|
|
7362
7354
|
};
|
|
7355
|
+
CartEcComponent.prototype.redirectCheckout = function () {
|
|
7356
|
+
if (this.cartService.hasSufficientCreditsForCartTotal()) {
|
|
7357
|
+
this.router.navigateByUrl("/checkout");
|
|
7358
|
+
}
|
|
7359
|
+
else {
|
|
7360
|
+
console.warn("No se puede redirigir al checkout debido a una validación fallida.");
|
|
7361
|
+
}
|
|
7362
|
+
};
|
|
7363
|
+
;
|
|
7363
7364
|
CartEcComponent.prototype.openModal = function (template) {
|
|
7364
7365
|
this.modalRef = this.modalService.show(template, { class: 'modal-xl', keyboard: false });
|
|
7365
7366
|
};
|