clean invalid items from eboutic baskets

This commit is contained in:
imperosol
2026-05-22 14:46:40 +02:00
parent dd4887ead4
commit 7f415c6a6c
3 changed files with 34 additions and 23 deletions
+11 -1
View File
@@ -30,7 +30,17 @@
{% block content %}
<h1 id="eboutic-title">{% trans %}Eboutic{% endtrans %}</h1>
<div id="eboutic" x-data="basket({{ last_purchase_time }})">
<div
id="eboutic"
x-data="basket(
[{%- for prices in categories -%}
{%- for p in prices -%}
{% if not p.sold_out %}{{ p.id }},{% endif %}
{%- endfor -%}
{%- endfor -%}],
{{ last_purchase_time }},
)"
>
<div id="basket">
<h3>Panier</h3>
<form method="post" action="">