[FIX] website_sale_aplicoop: toggle reparto desde carrito
This commit is contained in:
parent
2f57a5d14e
commit
97dc41d212
2 changed files with 13 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue