[FIX] website_sale_aplicoop: toggle reparto desde carrito

This commit is contained in:
snt 2026-02-27 15:43:59 +01:00
parent 2f57a5d14e
commit 97dc41d212
2 changed files with 13 additions and 10 deletions

View file

@ -213,6 +213,14 @@
var cartKey = "eskaera_" + this.orderId + "_cart";
localStorage.setItem(cartKey, JSON.stringify(cart));
// Mantener sincronizado el carrito en memoria (sidebar de tienda)
if (window.groupOrderShop && window.groupOrderShop.cart !== undefined) {
window.groupOrderShop.cart = cart;
if (typeof window.groupOrderShop._updateCartDisplay === "function") {
window.groupOrderShop._updateCartDisplay();
}
}
// Re-render checkout summary without reloading
setTimeout(function () {
// Use the global function from checkout_labels.js