Loading
Preview build: purchases open after content licensing is confirmed.
Renders Sale and Sold out badges from product data.
Illustrative preview
Static rendering of typical output. Scripts and network access are blocked in this frame.
product-badges.liquid
{%- if product.available == false -%}
<span class="badge badge--soldout">Sold out</span>
{%- elsif product.compare_at_price > product.price -%}
<span class="badge badge--sale">Sale</span>
{%- endif -%}