Pass product data to cart _added.html template
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 10:21:16 +00:00
parent 25228881aa
commit e0b640f15b

View File

@@ -265,6 +265,7 @@ def register():
return await render_template(
"_types/product/_added.html",
d={"slug": slug},
cart=g.cart,
item=ci,
total=total,