Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Display product price in storefront always if available

Anna Siwikb148abc45b31
diff --git a/templates/_items.html b/templates/_items.html
index 549d6ac251..e10ccd48b5 100644
--- a/templates/_items.html
+++ b/templates/_items.html
@@ -17,22 +17,22 @@
</div>
<div class="panel-footer">
- {% if availability.available %}
+ {% if product.is_available %}
{% price_range availability.price_range %}
- {% if availability.discount %}
- {% if availability.price_range_undiscounted.min_price != availability.price_range.min_price %}
- <div class="product-list__sale">
- <svg data-src="{% static "images/sale-bg.svg" %}" />
- <span class="product-list__sale__text">
- {% comment %}Translators: Layout may break if character length is different than four.{% endcomment %}
- {% trans "Sale" context "Sale (discount) label for item in product list" %}
- </span>
- </div>
- {% endif %}
- {% endif %}
{% else %}
&nbsp;
{% endif %}
+ {% if availability.available and availability.discount %}
+ {% if availability.price_range_undiscounted.min_price != availability.price_range.min_price %}
+ <div class="product-list__sale">
+ <svg data-src="{% static "images/sale-bg.svg" %}" />
+ <span class="product-list__sale__text">
+ {% comment %}Translators: Layout may break if character length is different than four.{% endcomment %}
+ {% trans "Sale" context "Sale (discount) label for item in product list" %}
+ </span>
+ </div>
+ {% endif %}
+ {% endif %}
</div>
</div>
</a>