Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add contextual markers to category templates
Marco Badan5ddb2d452d4c
diff --git a/templates/category/_items.html b/templates/category/_items.htmlindex a25eb12467..3491ddb47b 100644--- a/templates/category/_items.html+++ b/templates/category/_items.html@@ -21,7 +21,12 @@{% 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"><img src="{% static "images/sale_bg.svg" %}"><span>{% trans "Sale" %}</span></div>+ <div class="product-list__sale"><img src="{% static "images/sale_bg.svg" %}">+ <span>+ {% 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 %}