{% with palette=product.palette %}
{% if product.is_sold_out or product.on_sale %}
{% if product.is_sold_out %}Sold out{% endif %} {% if product.on_sale %}Sale{% endif %}
{% endif %}
{% endwith %}