{% comment %} Use page name from Custo if it's been customized, otherwise use the localized default. {% endcomment %} {% assign page_title = t['navigation.products'] %} {% if page.full_url contains "search=" %} {% assign page_title = t['products.search_results'] %} {% elsif page.name != 'Products' %} {% assign page_title = page.name %} {% endif %} {% if categories.active != blank or artists.active != blank %}

{{ page_title }}

{% unless page.full_url contains 'search=' %} {% endunless %} {% if artists.active != blank %} {% unless page.full_url contains 'search=' %}
    {% for artist in artists.active %}
  • {{ artist | link_to }}
  • {% endfor %}
{% endunless %} {% endif %}
{% endif %} {% paginate products from products.current by theme.products_per_page %} {% if products != blank %}
{% for product in products %} {% assign image_width = product.image.width | times: 1.0 %} {% assign image_height = product.image.height | times: 1.0 %} {% assign aspect_ratio = image_width | divided_by: image_height %} {% assign product_status = '' %} {% case product.status %} {% when 'active' %} {% if product.on_sale %} {% assign product_status = t['products.on_sale'] %} {% endif %} {% when 'sold-out' %} {% assign product_status = t['products.sold_out'] %} {% when 'coming-soon' %} {% assign product_status = t['products.coming_soon'] %} {% endcase %} {% capture status_class %}{% if product.status == 'active' and product.on_sale %}status-primary{% else %}status-secondary{% endif %}{% endcapture %} {% endfor %}
{% if paginate.pages > 1 %} {{ paginate | default_pagination }} {% endif %} {% else %}
{{ t['products.no_products'] }}
{% endif %} {% endpaginate %}