Improve SOLD OUT / FULLY BOOKED message logic (Z#23187802) (#4988)

Show SOLD OUT instead of FULLY BOOKED if ticket is not free of charge even if a voucher gives 100% off
This commit is contained in:
luelista
2025-04-07 13:51:59 +02:00
committed by GitHub
parent 277a5bffa8
commit 899994ef1e
4 changed files with 9 additions and 9 deletions

View File

@@ -220,7 +220,7 @@
{% endif %} {% endif %}
</div> </div>
{% else %} {% else %}
{% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross avail=var.cached_availability.0 event=event item=item var=var %} {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross original_price=var.original_price.gross avail=var.cached_availability.0 event=event item=item var=var %}
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>
@@ -366,7 +366,7 @@
{% endif %} {% endif %}
</div> </div>
{% else %} {% else %}
{% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross avail=item.cached_availability.0 event=event item=item var=0 %} {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross original_price=item.original_price.gross avail=item.cached_availability.0 event=event item=item var=0 %}
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>

View File

@@ -19,10 +19,10 @@
</div> </div>
{% elif avail <= 10 %} {% elif avail <= 10 %}
<div class="col-md-2 col-sm-3 col-xs-6 availability-box gone"> <div class="col-md-2 col-sm-3 col-xs-6 availability-box gone">
{% if price != None and not price %} {% if price or original_price %}
<strong>{% trans "FULLY BOOKED" %}</strong>
{% else %}
<strong>{% trans "SOLD OUT" %}</strong> <strong>{% trans "SOLD OUT" %}</strong>
{% else %}
<strong>{% trans "FULLY BOOKED" %}</strong>
{% endif %} {% endif %}
{% if allow_waitinglist and item.allow_waitinglist %} {% if allow_waitinglist and item.allow_waitinglist %}
<br/> <br/>

View File

@@ -238,7 +238,7 @@
{% endif %} {% endif %}
</div> </div>
{% else %} {% else %}
{% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross avail=var.cached_availability.0 event=event item=item var=var %} {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross original_price=var.original_price.gross avail=var.cached_availability.0 event=event item=item var=var %}
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>
@@ -391,7 +391,7 @@
{% endif %} {% endif %}
</div> </div>
{% else %} {% else %}
{% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross avail=item.cached_availability.0 event=event item=item var=0 %} {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross original_price=item.original_price.gross avail=item.cached_availability.0 event=event item=item var=0 %}
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>

View File

@@ -255,7 +255,7 @@
{% endif %} {% endif %}
</div> </div>
{% else %} {% else %}
{% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross avail=var.cached_availability.0 item=item %} {% include "pretixpresale/event/fragment_availability.html" with price=var.display_price.gross original_price=var.original_price.gross avail=var.cached_availability.0 item=item %}
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>
@@ -411,7 +411,7 @@
{% endif %} {% endif %}
</div> </div>
{% else %} {% else %}
{% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross avail=item.cached_availability.0 item=item %} {% include "pretixpresale/event/fragment_availability.html" with price=item.display_price.gross original_price=item.original_price.gross avail=item.cached_availability.0 item=item %}
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>