{# Cart contents, swapped in via htmx on quantity change / removal so the page never does a full reload. Rendered inside
| {{ item.name }} | {% if item.on_sale %} {{ item.price }} {{ item.currency }} {{ item.regular_price }} {% else %} {{ item.price }} {{ item.currency }} {% endif %} | {# Changing the quantity posts via htmx (custom `cartchange` event) and swaps only #cart-body. Dropping to 0 asks for confirmation first, reverting to the previous quantity if the customer cancels. #} | {{ item.line_total }} {{ item.currency }} | |
| {{ t(key="cart-total", lang=lang | default(value='sk')) }} | {{ total }} {{ currency }} | |||
{{ t(key="cart-empty", lang=lang | default(value='sk')) }}
{{ ui::button(label=t(key="cart-continue", lang=lang | default(value='sk')), href="/shop", extra="mt-4") }}