{# ThemeWare "Sold badge" content #} {# TODO: Exclude variant articles if not on product-detail #} {% block twt_product_badges_sold_badge %} {% if type == "detail" %} {# ThemeWare: "Sold badge" on detail page #} {% if product.isCloseout and product.availableStock < product.minPurchase %}
{{ "twt.extension.stockBadge.noStock"|trans }}
{% endif %} {% else %} {# ThemeWare: "Sold badge" on other pages #} {% if product.isCloseout and product.availableStock < product.minPurchase and not product.isGrouped %}
{{ "twt.extension.stockBadge.noStock"|trans }}
{% endif %} {% endif %} {% endblock %}