We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e12869 commit 1d10d9eCopy full SHA for 1d10d9e
js/carrito.js
@@ -50,6 +50,11 @@ const sumaVrTotalProds = () => {
50
return carrito.reduce((acumulador, item) => acumulador + item.precio, 0);
51
}
52
53
+async function recargaPagTiempo() {
54
+ await new Promise (resolve => setTimeout(resolve, 5000));
55
+ location.reload();
56
+}
57
+
58
const borrarTodoCarrito = () => {
59
const swalOptions = {
60
title: "¿Deseas eliminar todo tu carrito de compras?",
@@ -80,6 +85,8 @@ const borrarTodoCarrito = () => {
80
85
});
81
86
82
87
88
89
+ recargaPagTiempo();
83
90
84
91
92
const desplegarBotonCarrito = () => {
@@ -238,6 +245,7 @@ const finalizarCompra = () => {
238
245
239
246
240
247
248
241
249
242
250
243
251
desplegarGraficosCarrito();
0 commit comments