From 8c2358022a01cb6f9bdd2619a82eaed792a93c58 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 15 Feb 2026 10:15:07 +0000 Subject: [PATCH] Fix undefined calendar_total/calendar_cart_entries in product cart template The _added.html template's summary macro expects calendar_total and calendar_cart_entries from the cart/events domain. The market app has no calendar entries, so pass a no-op function and empty list. Co-Authored-By: Claude Opus 4.6 --- bp/product/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bp/product/routes.py b/bp/product/routes.py index 04b0fe9..4926173 100644 --- a/bp/product/routes.py +++ b/bp/product/routes.py @@ -250,7 +250,9 @@ def register(): "_types/product/_added.html", cart=g.cart, item=ci, - total = total + total=total, + calendar_total=lambda entries: 0, + calendar_cart_entries=[], ) # normal POST: go to cart page