From 7b55d782148e52ee4ddbeb0e4952058f269aef7d Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Feb 2026 09:31:06 +0000 Subject: [PATCH] Fix cross-origin cart +/- buttons by supporting cart_quantity_url in template The cart_item macro now checks for cart_quantity_url (defined only in the cart app) and uses it for same-origin quantity updates, falling back to market_product_url. Co-Authored-By: Claude Opus 4.6 --- browser/templates/_types/product/_cart.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/browser/templates/_types/product/_cart.html b/browser/templates/_types/product/_cart.html index 1f173aa..5700131 100644 --- a/browser/templates/_types/product/_cart.html +++ b/browser/templates/_types/product/_cart.html @@ -188,10 +188,11 @@
Quantity + {% set qty_url = cart_quantity_url(item.product_id) if cart_quantity_url is defined else market_product_url(p.slug, 'cart', item.market_place) %}
@@ -212,9 +213,9 @@ {{ item.quantity }}