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 CHANGED
@@ -1,3 +1,5 @@
1
+ # version 0.0.577
2
+ - Error funcion void en `cart-ec.component.ts`
1
3
  # version 0.0.576
2
4
  - Se hace merge y estable la version de decidir.
3
5
  # version 0.0.575
@@ -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
  };