From 6db91cb3c191e279027b71e4086372b76d9d7dc3 Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Feb 2026 09:43:12 +0000 Subject: [PATCH] Add delete button with confirm modal to cart_item, clamp minus at 0 Minus button now floors at 0 instead of going negative. A trash button with SweetAlert2 confirmation appears when cart_delete_url is defined (cart app only). Items at quantity 0 remain visible for re-increment. Co-Authored-By: Claude Opus 4.6 --- browser/templates/_types/product/_cart.html | 31 +++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/browser/templates/_types/product/_cart.html b/browser/templates/_types/product/_cart.html index 5700131..4947d86 100644 --- a/browser/templates/_types/product/_cart.html +++ b/browser/templates/_types/product/_cart.html @@ -200,7 +200,7 @@ + + {% endif %}