diff --git a/assets/cart.js b/assets/cart.js index 8046a90..55f6942 100644 --- a/assets/cart.js +++ b/assets/cart.js @@ -58,6 +58,8 @@ class CartItems extends HTMLElement { } onCartUpdate() { + console.log("onCartUpdate"); + if (this.tagName === "CART-DRAWER-ITEMS") { fetch(`${routes.cart_url}?section_id=cart-drawer`) .then((response) => response.text()) diff --git a/snippets/cart-drawer.liquid b/snippets/cart-drawer.liquid index 307cb7f..9a68d25 100644 --- a/snippets/cart-drawer.liquid +++ b/snippets/cart-drawer.liquid @@ -82,7 +82,7 @@ {% endif %}