Fix undefined calendar_total/calendar_cart_entries in product cart template
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s

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 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-15 10:15:07 +00:00
parent 44f475857b
commit 8c2358022a

View File

@@ -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