Fix OOB cart-mini clearing cart icon when adjusting tickets
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s
The mini macro was imported without context, so cart_count was invisible to the macro. Pass count explicitly in _adjust_response.html and add 'with context' to _buy_result.html. Update shared submodule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{# Response for ticket adjust — buy form + OOB cart-mini update #}
|
||||
{% from '_types/cart/_mini.html' import mini %}
|
||||
{{ mini(oob='true') }}
|
||||
{{ mini(oob='true', count=cart_count) }}
|
||||
{% include '_types/tickets/_buy_form.html' %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{# Shown after ticket purchase — replaces the buy form #}
|
||||
{# OOB: refresh cart badge to reflect new ticket count #}
|
||||
{% from '_types/cart/_mini.html' import mini %}
|
||||
{% from '_types/cart/_mini.html' import mini with context %}
|
||||
{{ mini(oob='true') }}
|
||||
|
||||
<div id="ticket-buy-{{ entry.id }}" class="rounded-xl border border-emerald-200 bg-emerald-50 p-4">
|
||||
|
||||
Reference in New Issue
Block a user