ng-easycommerce 0.0.569 → 0.0.571
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 +5 -0
- package/assets/bancardCatastro.html +1 -1
- package/assets/ec-i18n/ct.json +1 -1
- package/assets/ec-i18n/en.json +1 -1
- package/assets/ec-i18n/es.json +1 -1
- package/assets/ec-i18n/fr.json +1 -1
- package/assets/ec-i18n/gl.json +1 -1
- package/assets/ec-i18n/pr.json +1 -1
- package/bundles/ng-easycommerce.umd.js +15 -10
- 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/product-detail-ec/product-detail-ec.component.js +15 -10
- package/esm2015/lib/services/cart.service.js +2 -2
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +15 -10
- package/esm5/lib/services/cart.service.js +2 -2
- package/fesm2015/ng-easycommerce.js +15 -10
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +15 -10
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# version 0.0.571
|
|
2
|
+
- Update Bancard Version
|
|
3
|
+
# version 0.0.570
|
|
4
|
+
- Se actualizaron los mensajes de error para aclarar que los pedidos no se pueden repetir si el carrito no está vacío.
|
|
5
|
+
- Se modifica cuando un articulo no esta activado pero si su variante. Tambien cuando en endpoint devuelve un 404 Not found redirige a la home.
|
|
1
6
|
# version 0.0.569
|
|
2
7
|
- Se agregó el método `addRepeatOrderToCart` en `cart.service` para llamar al endpoint y repetir el pedido.
|
|
3
8
|
- Se incorporó un botón en `order-ec.component` para permitir repetir el pedido.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
console.log('Datos cargados desde catastro_data:', catastro_data);
|
|
14
14
|
|
|
15
15
|
let script_tag = document.createElement('script');
|
|
16
|
-
script_tag.setAttribute('src', catastro_data.environment + '/checkout/javascript/dist/bancard-checkout-
|
|
16
|
+
script_tag.setAttribute('src', catastro_data.environment + '/checkout/javascript/dist/bancard-checkout-4.0.0.js');
|
|
17
17
|
document.head.appendChild(script_tag);
|
|
18
18
|
|
|
19
19
|
let styles = {
|
package/assets/ec-i18n/ct.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"sorry": "Perdó! No vam poder trobar el producte que estàs buscant !!!",
|
|
95
95
|
"sorry-details": "Comproveu si ha escrit alguna cosa incorrectament o intenti buscar amb altres paraules.",
|
|
96
96
|
"empty-cart": "La teva cistella està buit",
|
|
97
|
-
"cart-not-empty": "
|
|
97
|
+
"cart-not-empty": "No pots repetir la comanda perquè la teva cistella no està buida.",
|
|
98
98
|
"empty-cart-detail": "Afegeix una cosa a l'cistella",
|
|
99
99
|
"image": "imatge",
|
|
100
100
|
"product-name": "Nom d'article",
|
package/assets/ec-i18n/en.json
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"email-address-help1": "Email is required",
|
|
103
103
|
"email-address-help2": "Invalid Email",
|
|
104
104
|
"empty-cart": "Your Cart is Empty",
|
|
105
|
-
"cart-not-empty": "
|
|
105
|
+
"cart-not-empty": "You cannot repeat the order because your cart is not empty.",
|
|
106
106
|
"empty-cart-detail": "Add something to make me happy :)",
|
|
107
107
|
"empty_faqs": "No FAQs uploaded yet",
|
|
108
108
|
"enter-actual-password": "Enter current password",
|
package/assets/ec-i18n/es.json
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"email-address-help1": "El email es requerido",
|
|
104
104
|
"email-address-help2": "Email inválido",
|
|
105
105
|
"empty-cart": "Tu carrito está vacio",
|
|
106
|
-
"cart-not-empty": "
|
|
106
|
+
"cart-not-empty": "No puedes repetir el pedido porque tu carrito no está vacío.",
|
|
107
107
|
"empty-cart-detail": "Agrega algo al carrito",
|
|
108
108
|
"empty_faqs": "Aún no hay preguntas frecuentes cargadas",
|
|
109
109
|
"enter-actual-password": "Ingrese contraseña actual",
|
package/assets/ec-i18n/fr.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"sorry": "Pardon! Impossible de trouver le produit que vous cherchiez !!!",
|
|
94
94
|
"sorry-details": "Veuillez vérifier si vous avez mal orthographié quelque chose ou essayez de chercher avec d'autres mots.",
|
|
95
95
|
"empty-cart": "Votre panier est vide",
|
|
96
|
-
"cart-not-empty": "
|
|
96
|
+
"cart-not-empty": "Vous ne pouvez pas répéter la commande car votre panier n'est pas vide.",
|
|
97
97
|
"empty-cart-detail": "Ajouter quelque chose pour me rendre heureux :)",
|
|
98
98
|
"image": "Image",
|
|
99
99
|
"product-name": "Nom d'article",
|
package/assets/ec-i18n/gl.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"sorry": "Sentímolo! Non se atopou o produto que busca!!!",
|
|
95
95
|
"sorry-details": "Asegúrese de que escribiu algo incorrectamente ou intente buscar con outras palabras.",
|
|
96
96
|
"empty-cart": "O teu carro está baleiro",
|
|
97
|
-
"cart-not-empty": "
|
|
97
|
+
"cart-not-empty": "Non podes repetir o pedido porque o teu carro non está baleiro.",
|
|
98
98
|
"empty-cart-detail": "Engade algo ao carro",
|
|
99
99
|
"image": "Imaxe",
|
|
100
100
|
"product-name": "Nome do elemento",
|
package/assets/ec-i18n/pr.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"sorry": "Desculpe! Não foi possível encontrar o produto que você estava procurando !!!",
|
|
95
95
|
"sorry-details": "Verifique se você escreveu algo incorretamente ou tente pesquisar com outras palavras.",
|
|
96
96
|
"empty-cart": "O seu carrinho está vazio",
|
|
97
|
-
"cart-not-empty": "
|
|
97
|
+
"cart-not-empty": "Não pode repetir o pedido porque o seu carrinho não está vazio.",
|
|
98
98
|
"empty-cart-detail": "Adicione algo ao carrinho",
|
|
99
99
|
"image": "Imagen",
|
|
100
100
|
"product-name": "Nome do artigo",
|
|
@@ -4699,7 +4699,7 @@
|
|
|
4699
4699
|
else {
|
|
4700
4700
|
// Otro código de error
|
|
4701
4701
|
_this.handleError(err);
|
|
4702
|
-
|
|
4702
|
+
// this.toastrService.show('Error inesperado. Vuelva a intentarlo');
|
|
4703
4703
|
}
|
|
4704
4704
|
});
|
|
4705
4705
|
}
|
|
@@ -10431,15 +10431,20 @@
|
|
|
10431
10431
|
_this.code = queryParams.id;
|
|
10432
10432
|
});
|
|
10433
10433
|
_this.productService.product$.subscribe(function (res) {
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
_this.
|
|
10439
|
-
|
|
10440
|
-
_this.
|
|
10441
|
-
_this.
|
|
10442
|
-
|
|
10434
|
+
if (res == null) {
|
|
10435
|
+
_this.router.navigate(['/']);
|
|
10436
|
+
}
|
|
10437
|
+
else {
|
|
10438
|
+
_this.product = res;
|
|
10439
|
+
window.scroll(0, 0);
|
|
10440
|
+
_this.breadcrumb = _this.optionsService.getBreadcrumb(_this.product.category);
|
|
10441
|
+
if (_this.product.name) {
|
|
10442
|
+
_this.meta.updateTag({ property: 'og:title', content: _this.product.name });
|
|
10443
|
+
_this.meta.updateTag({ property: 'og:description', content: _this.deleteHTML(_this.product.description) });
|
|
10444
|
+
_this.meta.updateTag({ property: 'og:image', content: _this.consts.mediaUrl() + _this.product.picturesdefault[0] });
|
|
10445
|
+
_this.meta.updateTag({ property: 'og:type', content: 'product' });
|
|
10446
|
+
_this.meta.updateTag({ property: 'og:url', content: window.location.href });
|
|
10447
|
+
}
|
|
10443
10448
|
}
|
|
10444
10449
|
});
|
|
10445
10450
|
_this.productService.product$.pipe(operators.filter(function (data) { return data && data.id && data.id != 0; })).subscribe(function (productParam) {
|