ng-easycommerce 0.0.636 → 0.0.638
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/bundles/ng-easycommerce.umd.js +4 -0
- 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/cart.service.js +6 -1
- package/esm5/lib/services/cart.service.js +6 -1
- package/fesm2015/ng-easycommerce.js +5 -1
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +5 -1
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# version 0.0.638
|
|
2
|
+
- evitar múltiples solicitudes al agregar productos al carrito
|
|
3
|
+
# version 0.0.637
|
|
4
|
+
- se agrego validaciones al registro, para nombres y apellidos sin caracteres especiales ni numero.
|
|
5
|
+
- cuando se paga con place to pay, en la pagina de Gracias por su compra, se agrego fecha de la compra y monto total de la compra.
|
|
1
6
|
# version 0.0.636
|
|
2
7
|
- Campo **notes** en checkout: oculto, visible o requerido según `checkoutNotesField` del canal
|
|
3
8
|
- **show**: muestra el campo sin hacerlo obligatorio.
|
|
@@ -4814,6 +4814,9 @@
|
|
|
4814
4814
|
*/
|
|
4815
4815
|
this.addToCart = function (product, quantity, variant_id, comments) {
|
|
4816
4816
|
var _a, _b, _c, _d;
|
|
4817
|
+
if (_this.requestInProcess.getValue()) {
|
|
4818
|
+
return;
|
|
4819
|
+
}
|
|
4817
4820
|
var balance = _this.balanceCustomerSubject.value;
|
|
4818
4821
|
var applyMaxOrders = (_b = (_a = balance) === null || _a === void 0 ? void 0 : _a.applyMaxOrders, (_b !== null && _b !== void 0 ? _b : false));
|
|
4819
4822
|
var maxOrders = (_d = (_c = balance) === null || _c === void 0 ? void 0 : _c.maxOrders, (_d !== null && _d !== void 0 ? _d : Infinity));
|
|
@@ -4837,6 +4840,7 @@
|
|
|
4837
4840
|
payload.comments = comments;
|
|
4838
4841
|
}
|
|
4839
4842
|
_this.connection.post(_this.addItemApi(), payload)
|
|
4843
|
+
.pipe(operators.finalize(function () { return _this.requestInProcess.next(false); }))
|
|
4840
4844
|
.subscribe(function (res) {
|
|
4841
4845
|
// Manejar la respuesta HTTP exitosa (código 200)
|
|
4842
4846
|
_this.appendToCart(res);
|