Father's Day

{% if section.settings.tags_enable and section.settings.sort_enable %}{% endif %} {% if section.settings.collection_image_enable %}{% if collection.image %}
{{ collection.title }}
{% endif %} {% endif %}
{%- assign limit = section.settings.grid | times: section.settings.rows -%} {% paginate collection.products by limit %}
{% if collection.handle == 'all' %}

{{ 'products.general.products_title' | t }}

{% else %}

{{ collection.title }}

{% endif %}
{% if collection.description != empty %}
{{ collection.description }}
{% endif %}
{% if section.settings.tags_enable or section.settings.sort_enable %}
{% if section.settings.tags_enable %}
{% if collection.handle %} {% elsif collection.products.first.type == collection.title %} {% elsif collection.products.first.vendor == collection.title %} {% endif %}
{% endif %} {% if section.settings.sort_enable %}
{%- assign sort_by = collection.sort_by | default: collection.default_sort_by -%}
{% endif %}
{% endif %}
{% if section.settings.enable_collection_sidebar %} {% if section.blocks.size > 0 %}
{% for block in section.blocks %} {% case block.type %} {% when 'vendors' %}

{{ block.settings.title }}

    {% for product_vendor in shop.vendors %} {% assign its_a_match = false %} {% capture my_collection_handle %} {{ product_vendor | handleize | strip | escape }} {% endcapture %} {% assign my_collection_handle_stripped = my_collection_handle | strip | escape %} {% for collection in collections %} {% if my_collection_handle_stripped == collection.handle %} {% assign its_a_match = true %} {% endif %} {% endfor %} {% if its_a_match %}
  • {{ product_vendor }}
  • {% else %}
  • {{ product_vendor | link_to_vendor }}
  • {% endif %} {% endfor %}
{% when 'text' %}

{{ block.settings.title }}

{{ block.settings.richtext }}
{% when 'menu' %} {%- assign collection_linklist = block.settings.collection_linklist -%} {% if linklists[collection_linklist].links.size > 0 %}

{{ block.settings.menu_title | escape }}

    {% for link in linklists[collection_linklist].links %}
  • 0 %} class="children"{% endif %}> {{link.title}}
  • {% endfor %}
{% endif %} {% when 'image' %} {% if block.settings.collection-sidebar-image %}
{% if block.settings.collection-sidebar-link %} {% endif %}
{% endif %} {% endcase %} {% endfor %}
{% endif %} {% endif %} {% if section.settings.enable_collection_sidebar and section.blocks.size > 0 %}
{% else %}
{% endif %} {% case section.settings.grid %} {% when '2' %} {%- assign grid_item_width = 'col-xs-6 col-sm-6 col-md-6 two_columns' -%} {%- assign grid_image_width = '600x600' -%} {% when '3' %} {%- assign grid_item_width = 'col-xs-6 col-sm-4 col-md-4 three_columns' -%} {%- assign grid_image_width = '600x600' -%} {% when '4' %} {%- assign grid_item_width = 'col-xs-6 col-sm-6 col-md-3 four_columns' -%} {%- assign grid_image_width = '600x600' -%} {% endcase %}
{% for product in collection.products %}
{% case section.settings.hover-effect %} {% when 'none' %} {{product.title}} {% when 'second-image' %} {% if product.images.size > 1 %} {% else %} {{product.title}} {% endif %} {% when 'zoom' %} {% endcase %}
{% if product.available %} {% if product.compare_at_price_max > product.price %}
{{ 'products.general.sale' | t }}
{% endif %} {% else %}
{{ 'products.product.sold_out' | t }}
{% endif %}
{% else %} {% comment %} Add default products to help with onboarding for collections/all only. The onboarding styles and products are only loaded if the store has no products. {% endcomment %} {% if collection.handle == 'all' and collection.all_vendors.size == 0 and collection.all_types.size == 0 %} {% for i in (1..8) %} {% endfor %} {% else %} {%- assign is_empty_collection = true -%} {% endif %} {% endfor %}
{% if is_empty_collection %}

{{ 'collections.general.no_matches' | t }}

{% endif %} {% if paginate.pages > 1 %}
{% endif %}
{% endpaginate %} {% schema %} { "name": "Collection pages", "max_blocks": 6, "settings": [ { "type": "select", "id": "grid", "label": "Products per row", "default": "4", "options": [ { "value": "2", "label": "2" }, { "value": "3", "label": "3" }, { "value": "4", "label": "4" } ] }, { "type": "select", "id": "rows", "label": "Rows per page", "default": "6", "options": [ { "value": "3", "label": "3" }, { "value": "4", "label": "4" }, { "value": "5", "label": "5" }, { "value": "6", "label": "6" }, { "value": "7", "label": "7" }, { "value": "8", "label": "8" } ] }, { "type": "checkbox", "id": "show-vendor", "label": "Show vendor", "default": false }, { "type": "select", "id": "hover-effect", "label": "Hover effect", "default": "zoom", "options": [ { "value": "none", "label": "None" }, { "value": "zoom", "label": "Zoom" }, { "value": "second-image", "label": "Show Second Product Image" } ] }, { "type": "checkbox", "id": "collection_image_enable", "label": "Show collection image", "default": true }, { "type": "checkbox", "id": "sort_enable", "label": "Enable sorting", "default": true }, { "type": "checkbox", "id": "tags_enable", "label": "Enable tag filtering", "default": true }, { "type": "header", "content": "Auto-height images" }, { "type": "paragraph", "content": "Set all of your images to be the same height" }, { "type": "checkbox", "id": "match-height", "label": "Enable auto-height", "default": false }, { "type": "header", "content": "Sidebar" }, { "type": "checkbox", "id": "enable_collection_sidebar", "label": "Toggle sidebar content", "default": false, "info": "Create a sidebar by adding content blocks below." } ], "blocks": [ { "type": "text", "name": "Text", "settings": [ { "type": "text", "id": "title", "label": "Heading", "default": "Collection Sidebar Header Text" }, { "type": "richtext", "id": "richtext", "label": "Text", "default": "

Share details about promotions or important messages with your customers.

" } ] }, { "type": "vendors", "name": "Vendors", "limit": 1, "settings": [ { "type": "text", "id": "title", "label": "Heading", "default": "Vendors" } ] }, { "type": "menu", "name": "Menu", "settings": [ { "type": "text", "id": "menu_title", "label": "Heading", "default": "Links" }, { "type": "link_list", "id": "collection_linklist", "label": "Menu", "default": "main-menu" } ] }, { "type": "image", "name": "Image", "settings": [ { "type": "image_picker", "id": "collection-sidebar-image", "label": "Image", "info": "300 x 150px recommended" }, { "type": "url", "id": "collection-sidebar-link", "label": "Link", "info": "Optional" } ] } ] } {% endschema %}