Fix unavailable input options (Z#23194875) (#5178)

* Fix unavailable input options

* Fix it also for items with variations

* Fix it also for items with variations
This commit is contained in:
Phin Wolkwitz
2025-06-02 18:41:47 +02:00
committed by GitHub
parent ac2f2e073e
commit 36c0acc574

View File

@@ -186,7 +186,7 @@
{% endif %}
{% endif %}
</div>
{% if var.cached_availability.0 == 100 or var.initial %}
{% if not item.current_unavailability_reason and not var.current_unavailability_reason and var.cached_availability.0 == 100 or var.initial %}
<div class="col-md-2 col-sm-3 col-xs-6 availability-box available">
{% if c.max_count == 1 or not c.multi_allowed %}
<label class="btn btn-default btn-checkbox">
@@ -327,7 +327,7 @@
{% endif %}
</p>
</div>
{% if item.cached_availability.0 == 100 or item.initial %}
{% if not item.current_unavailability_reason and item.cached_availability.0 == 100 or item.initial %}
<div class="col-md-2 col-sm-3 col-xs-6 availability-box available">
{% if c.max_count == 1 or not c.multi_allowed %}
<label class="btn btn-default btn-checkbox">