From 1467750db6134b54c9e96e032c5fa14c17dcd73e Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 29 Jul 2026 23:15:32 +0000 Subject: [PATCH] Hide the free-shipping progress banner when the cart has no shippable items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reuses FreeShippingBanner's existing threshold===null early return — a "€X bis kostenlosem Versand" nudge makes no sense for a cart that was never going to be charged shipping. Co-Authored-By: Claude Sonnet 5 --- app/cart/components/CartContent.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/cart/components/CartContent.tsx b/app/cart/components/CartContent.tsx index a5dac29..5ba1c85 100644 --- a/app/cart/components/CartContent.tsx +++ b/app/cart/components/CartContent.tsx @@ -170,7 +170,12 @@ export function CartContent({ ) : ( <>
- + {/* threshold forced to null (banner just doesn't render, see its + own early return) whenever nothing in the cart actually + triggers shipping — a "€X bis kostenlosem Versand" nudge + makes no sense for a cart that was never going to be charged + shipping in the first place. */} +
{/* Cart card — lg:-only split from the sidebar (same "wide content