From e0b640f15b12c625f8a171905cf811a7efe71b2b Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 10:21:16 +0000 Subject: [PATCH] Pass product data to cart _added.html template resolve_product skips for POST so g.item_data (and thus d) is not set. Pass d={slug} directly in the render_template call. Co-Authored-By: Claude Opus 4.6 --- bp/product/routes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bp/product/routes.py b/bp/product/routes.py index ef8d0a2..1dd8c41 100644 --- a/bp/product/routes.py +++ b/bp/product/routes.py @@ -265,6 +265,7 @@ def register(): return await render_template( "_types/product/_added.html", + d={"slug": slug}, cart=g.cart, item=ci, total=total,