Get collection description under the products (Minimog Theme)

Get collection description under the products (Minimog Theme)

mrbooom88
Shopify Partner
10 0 2

Hello, can somebody help me to get my collection description or best would be just a part of my description  under the products on the collection page? I checked other thread here. But my collection template liquid  in completely empty. Is there maybe a other spot where I have to look?

 
 

 

 

 
 

 

 

Replies 13 (13)

KetanKumar
Shopify Partner
37094 3645 12053

@mrbooom88 

yes, please try this code

{{ product.description }}
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on [email protected] regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

LitExtension
Shopify Partner
4860 1002 1160

Hi @mrbooom88,

Please send me the code of the collection-template.liquid file, I will check it for you

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
mrbooom88
Shopify Partner
10 0 2

As I said, it is completely empty...

Collection.JPG

KetanKumar
Shopify Partner
37094 3645 12053

@mrbooom88 

can you pleaser check older vertion 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on [email protected] regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
mrbooom88
Shopify Partner
10 0 2

I just have added the code which was mentioned in an other thread here, in the hope that works xD

So the original was really empty.

Collection1.JPG

KetanKumar
Shopify Partner
37094 3645 12053

@mrbooom88 

orignal 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on [email protected] regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
mrbooom88
Shopify Partner
10 0 2

The original is the first screenshot.

Collection.JPG

LitExtension
Shopify Partner
4860 1002 1160

Hi @mrbooom88,

Please send me the code of the collection.json file, I will check it for you

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
mrbooom88
Shopify Partner
10 0 2

Thanks 🙂 Here is the code:

 

{
"sections": {
"collection-header": {
"type": "collection-page-header",
"settings": {
"container": "container",
"layout": "inside",
"header_height": "small",
"text_alignment": "center",
"vertical_alignment": "center",
"text_color": "dark",
"bg_color": "#ffffff",
"enable_parallax": false,
"upper_title": false,
"show_desc": true,
"collection_all_desc": ""
}
},
"main": {
"type": "main-collection-product-grid",
"blocks": {
"26ef6509-772d-4c44-bd90-efc089bd9355": {
"type": "filter",
"settings": {
"design_filtergroup": "button",
"title": "Size",
"filtergroup": "XS,S,M,L,XL",
"show_label": false,
"use_accordion": false,
"open_filtergroup": true
}
},
"e12de6da-eab8-4abe-967c-06d0d959a18a": {
"type": "filter",
"settings": {
"design_filtergroup": "color",
"title": "Colors",
"filtergroup": "Blue, Red, White ,Black ,Pink ,Silver,Purple,Brown,Yellow,Grey,Green,Tan,Violet,Dark Grey,Beige,Light Blue, Dark Blue, Light Grey, Light Pink, Mint, Rose Gold, Night Blue, Copper, Coral, Rosy Brown",
"show_label": false,
"use_accordion": false,
"open_filtergroup": true
}
},
"fa31a837-9c99-4c92-8cfe-0527ffbe7b15": {
"type": "filter",
"settings": {
"design_filtergroup": "default",
"title": "Prices",
"filtergroup": "$0-$50,$50-$100,$100-$150,$150-$200,$200-$300,$300-$400",
"show_label": false,
"use_accordion": false,
"open_filtergroup": true
}
},
"4903963a-90f0-4fe1-be23-ee4f8749e483": {
"type": "filter",
"settings": {
"design_filtergroup": "inrow",
"title": "Brands",
"filtergroup": "Minimog,Retrolie,Abby,Brook,Learts,Vagabond",
"show_label": false,
"use_accordion": false,
"open_filtergroup": true
}
},
"00b3badd-1613-4230-85d8-f87f04306aaa": {
"type": "filter",
"settings": {
"design_filtergroup": "inrow",
"title": "Tags",
"filtergroup": "Dress,Tops,Shirts,Fashion,Hats,Sandal,Belt,Bags,Snacker,Denim,Minimog,Vagabond,Sunglasses, Beachwear,Vintage",
"show_label": false,
"use_accordion": true,
"open_filtergroup": true
}
}
},
"block_order": [
"26ef6509-772d-4c44-bd90-efc089bd9355",
"e12de6da-eab8-4abe-967c-06d0d959a18a",
"fa31a837-9c99-4c92-8cfe-0527ffbe7b15",
"4903963a-90f0-4fe1-be23-ee4f8749e483",
"00b3badd-1613-4230-85d8-f87f04306aaa"
],
"settings": {
"container": "container-fluid",
"grid_layout": "grid",
"grid_columns": "4",
"pagination_limit": 12,
"show_columns_switcher": true,
"show_sorting": true,
"show_filter": true,
"filters_type": "tags_filter",
"sidebar": "leftColumn",
"sidebar_title": "Filters",
"limit_height_widget": false,
"limit_height": 300,
"paginate_type": "paginate"
}
},
"recent-viewed": {
"type": "recent-viewed-products",
"settings": {
"heading": "Kürzlich angesehene Produkte",
"container": "container",
"columns": 4,
"column_gap": 30,
"enable_slider": true
}
}
},
"order": [
"collection-header",
"main",
"recent-viewed"
]
}

LitExtension
Shopify Partner
4860 1002 1160

Hi @mrbooom88,

Please send me the code of main-collection-product-grid.liquid file, I will show you how to add collection description

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
mrbooom88
Shopify Partner
10 0 2

Here is the code: 

 

{%- assign st = section.settings -%}
{%- assign show_filter = st.show_filter -%}
{%- assign paginate_type = 'paginate' -%}
{%- assign grid_columns = st.grid_columns -%}
{%- assign grid_layout = st.grid_layout -%}
{%- assign grid_columns_view = '' -%}
{%- assign grid_cols = '' -%}

{%- case grid_columns -%}
{%- when '5' -%}
{%- assign grid_columns_view = '5' -%}
{%- assign grid_cols = 'five' -%}
{%- when '4' -%}
{%- assign grid_columns_view = '4' -%}
{%- assign grid_cols = 'four' -%}
{%- when '3' -%}
{%- assign grid_columns_view = '3' -%}
{%- assign grid_cols = 'three' -%}
{%- else -%}
{%- assign grid_columns_view = '2' -%}
{%- assign grid_cols = 'two' -%}
{%- endcase -%}

{%- assign filters_type = st.filters_type -%}
{%- if st.show_filter == false and st.show_sorting -%}
{%- assign filters_type = 'storefront_filters' -%}
{%- endif -%}
{%- assign paginate_type = st.paginate_type -%}

<section
data-section-type="collection-template"
data-section-id={{ section.id }}
data-filters-type="{{ st.filters_type }}"
data-show-filter="{{ show_filter }}"
data-section-container
>
<div class="{{ st.container }}{% if st.container == 'w-full' %} px-4 xl:px-[30px]{% endif %}">
<div class="sf__collection-container flex mt-2.5 lg:mb-15 lg:pt-7 mb-7 {% if show_filter %} sidebar__{{st.sidebar}}{% endif %}">
{% render 'collection-sidebar', section: section %}

<div id="CollectionProductGrid" class="relative {% if st.sidebar == 'fixed' or show_filter == false %}w-full{% else%}w-full xl:w-3/4 2xl:w-4/5{% endif %}">
{% if collection.products.length > 0 %}
{% render 'collection-page-toolbar',
section: section,
show_filter: show_filter,
grid_layout: grid_layout, grid_columns_view: grid_columns_view
%}
{% endif %}
<div data-section-inner>
{% if st.show_filter %}
<div id="sf-filter-by" class="flex flex-wrap items-center">
{% if filters_type == 'storefront_filters' %}
{% render 'collection-filters-facets' %}
{% else %}
{% render 'selected-tags-filter' %}
{% endif %}
</div>
{%- endif -%}
{%- paginate collection.products by st.pagination_limit -%}
{%- if collection.products.size == 0 -%}
<div class="sf-collection-empty collection collection--empty py-24 flex flex-col w-full items-center" id="main-collection-product-grid" data-id="{{ section.id }}">
<span>{% render 'icon', name: 'empty-collection', fill: '#9a9a9a' %}</span>
<p class="mt-5 text-color-subtext">{{ 'collections.general.no_matches' | t }}</p>
</div>
{%- else -%}
<div class="collection">
<div id="main-collection-product-grid" data-infinite-load="{% if paginate_type == 'infinite' %}true{% else %}false{% endif %}" data-url="{{ request.path }}" data-total-pages="{{ paginate.pages }}" data-id="{{ section.id }}" >
<div class="sf__product-listing {% if grid_layout == 'list' %} sf__col-one only-row{% else %} sf__col-{{grid_cols}}{% endif %} relative" data-width-item="{{ grid_columns_view }}">
<div class="sf__collection-wrapper" data-product-list>
<div class="flex flex-wrap -mx-2 xl:-mx-3 sf-collection-items">
{%- for product in collection.products -%}
<div class="sf__col-item w-6/12 md:w-4/12 px-2 xl:px-3">
{% render 'product-card', product: product %}
</div>
{%- endfor -%}
</div>
</div>
</div>
</div>
{% if paginate.pages > 1 %}
<div class="sf__collection-paginate text-center mt-10">
{% if paginate_type == 'infinite' or paginate_type == 'loadmore' %}
{% capture loadmore_text %}{{ 'collections.paginate.load_more' | t }}{% endcapture %}
{% if loadmore_text contains 'translation missing' %}
{% capture loadmore_text %}Load more{% endcapture %}
{% endif %}
<button class="sf__btn sf__btn-primary" data-load-more>
<span>{{ loadmore_text }}</span>
</button>
{% else %}
{% render 'pagination', paginate: paginate, anchor: '' %}
{% endif %}
</div>
{% endif %}
</div>
{%- endif -%}
{%- endpaginate -%}
</div>
</div>
</div>
</div>

{% if st.show_sorting %}
{% render 'sort-by-mobile' %}
{% endif %}
</section>

{% schema %}
{
"name": "Product listing",
"settings": [
{
"type": "header",
"content": "General"
},
{
"type": "select",
"id": "container",
"label": "Container type",
"default": "container",
"options": [
{
"value": "container-fluid",
"label": "Default"
},
{
"value": "w-full",
"label": "Full width"
},
{
"value": "container",
"label": "Use container box"
}
]
},
{
"type": "header",
"content": "layout"
},
{
"type": "radio",
"id": "grid_layout",
"label": "Default layout",
"options": [
{
"label": "Grid",
"value": "grid"
},
{
"label": "List",
"value": "list"
}
],
"default": "grid"
},
{
"type": "select",
"id": "grid_columns",
"label": "Products per row",
"info": "For \"Grid\" layout and device width > 1024px",
"options": [
{
"value": "2",
"label": "2"
},
{
"value": "3",
"label": "3"
},
{
"value": "4",
"label": "4"
},
{
"value": "5",
"label": "5"
}
],
"default": "3"
},
{
"type": "range",
"id": "pagination_limit",
"label": "Products per page",
"default": 12,
"min": 6,
"max": 24,
"step": 1
},
{
"type": "checkbox",
"id": "show_columns_switcher",
"label": "Show columns switcher",
"default": true
},
{
"type": "header",
"content": "Sorting and Filtering"
},
{
"type": "checkbox",
"id": "show_sorting",
"label": "Enable sorting",
"default": true
},
{
"type": "checkbox",
"id": "show_filter",
"label": "Enable filtering",
"default": false
},
{
"type": "select",
"id": "filters_type",
"label": "Filters type",
"options": [
{
"label": "Filters by Shopify",
"value": "storefront_filters"
},
{
"label": "Filters by custom tags",
"value": "tags_filter"
}
],
"default": "storefront_filters",
"info": "Customize [filters by Shopify](\/admin\/menus)"
},
{
"type": "select",
"id": "sidebar",
"label": "Filters position",
"options": [
{
"value": "leftColumn",
"label": "Left sidebar"
},
{
"value": "rightColumn",
"label": "Right sidebar"
},
{
"value": "fixed",
"label": "Off-canvas sidebar"
}
],
"default": "leftColumn"
},
{
"type": "text",
"id": "sidebar_title",
"label": "Filters title",
"default": "Filters",
"info": "Leave blank to hide"
},
{
"type": "checkbox",
"id": "limit_height_widget",
"label": "Limit filter widget's height",
"default": false
},
{
"type": "range",
"id": "limit_height",
"label": "Max height",
"default": 300,
"step": 10,
"min": 200,
"max": 600,
"unit": "px"
},
{
"type": "header",
"content": "Paginate"
},
{
"type": "select",
"id": "paginate_type",
"label": "Paginate type",
"default": "paginate",
"options": [
{
"value": "paginate",
"label": "Paging by number"
},
{
"value": "loadmore",
"label": "Load more button"
},
{
"value": "infinite",
"label": "Infinite scroll"
}
]
}
],
"blocks": [
{
"type": "filter",
"name": "Filter by tags",
"settings": [
{
"type": "paragraph",
"content": "[Filter values correspond to the value \"Tags\" in the product.](https:\/\/docs.shopify.com\/manual\/your-store\/products\/edit-tags)"
},
{
"type": "paragraph",
"content": "The filters won't work with the tags include some special symbols such as %, $ and other currency symbols"
},
{
"type": "paragraph",
"content": "Note: if the tag contains no products, it will not appear."
},
{
"type": "select",
"id": "design_filtergroup",
"label": "Design",
"options": [
{
"value": "default",
"label": "List"
},
{
"value": "inrow",
"label": "Inline link"
},
{
"value": "button",
"label": "Button"
},
{
"value": "color",
"label": "Color"
}
],
"default": "default"
},
{
"type": "text",
"id": "title",
"label": "Title",
"default": "Tags"
},
{
"type": "textarea",
"id": "filtergroup",
"label": "Tags List",
"default": "Vintage,tops,shirts",
"info": "Example: Vintage,tops,shirts..."
},
{
"type": "checkbox",
"id": "show_label",
"label": "Show color with label",
"default": false,
"info": "Work with filter colors"
},
{
"type": "checkbox",
"id": "use_accordion",
"label": "Enable collapsible",
"default": true
},
{
"type": "checkbox",
"id": "open_filtergroup",
"label": "Expand by default",
"default": true
}
]
},
{
"type": "collections",
"name": "Collections list",
"settings": [
{
"type": "text",
"id": "title",
"label": "Title",
"default": "Collections"
},
{
"type": "link_list",
"id": "menu",
"label": "Menu",
"info": "Only show items linked to a collection"
},
{
"type": "checkbox",
"id": "use_accordion",
"label": "Enable collapsible",
"default": true
},
{
"type": "checkbox",
"id": "open_filtergroup",
"label": "Expand by default",
"default": true
}
]
}
]
}
{% endschema %}

LitExtension
Shopify Partner
4860 1002 1160

Hi @mrbooom88,

Please change all code:

{%- assign st = section.settings -%}
{%- assign show_filter = st.show_filter -%}
{%- assign paginate_type = 'paginate' -%}
{%- assign grid_columns = st.grid_columns -%}
{%- assign grid_layout = st.grid_layout -%}
{%- assign grid_columns_view = '' -%}
{%- assign grid_cols = '' -%}

{%- case grid_columns -%}
{%- when '5' -%}
{%- assign grid_columns_view = '5' -%}
{%- assign grid_cols = 'five' -%}
{%- when '4' -%}
{%- assign grid_columns_view = '4' -%}
{%- assign grid_cols = 'four' -%}
{%- when '3' -%}
{%- assign grid_columns_view = '3' -%}
{%- assign grid_cols = 'three' -%}
{%- else -%}
{%- assign grid_columns_view = '2' -%}
{%- assign grid_cols = 'two' -%}
{%- endcase -%}

{%- assign filters_type = st.filters_type -%}
{%- if st.show_filter == false and st.show_sorting -%}
{%- assign filters_type = 'storefront_filters' -%}
{%- endif -%}
{%- assign paginate_type = st.paginate_type -%}

<section
         data-section-type="collection-template"
         data-section-id={{ section.id }}
         data-filters-type="{{ st.filters_type }}"
         data-show-filter="{{ show_filter }}"
         data-section-container
         >
  <div class="{{ st.container }}{% if st.container == 'w-full' %} px-4 xl:px-[30px]{% endif %}">
    <div class="sf__collection-container flex mt-2.5 lg:mb-15 lg:pt-7 mb-7 {% if show_filter %} sidebar__{{st.sidebar}}{% endif %}">
      {% render 'collection-sidebar', section: section %}

      <div id="CollectionProductGrid" class="relative {% if st.sidebar == 'fixed' or show_filter == false %}w-full{% else%}w-full xl:w-3/4 2xl:w-4/5{% endif %}">
        {% if collection.products.length > 0 %}
        {% render 'collection-page-toolbar',
section: section,
        show_filter: show_filter,
        grid_layout: grid_layout, grid_columns_view: grid_columns_view
        %}
        {% endif %}
        <div data-section-inner>
          {% if st.show_filter %}
          <div id="sf-filter-by" class="flex flex-wrap items-center">
            {% if filters_type == 'storefront_filters' %}
            {% render 'collection-filters-facets' %}
            {% else %}
            {% render 'selected-tags-filter' %}
            {% endif %}
          </div>
          {%- endif -%}
          {%- paginate collection.products by st.pagination_limit -%}
          {%- if collection.products.size == 0 -%}
          <div class="sf-collection-empty collection collection--empty py-24 flex flex-col w-full items-center" id="main-collection-product-grid" data-id="{{ section.id }}">
            <span>{% render 'icon', name: 'empty-collection', fill: '#9a9a9a' %}</span>
            <p class="mt-5 text-color-subtext">{{ 'collections.general.no_matches' | t }}</p>
          </div>
          {%- else -%}
          <div class="collection">
            <div id="main-collection-product-grid" data-infinite-load="{% if paginate_type == 'infinite' %}true{% else %}false{% endif %}" data-url="{{ request.path }}" data-total-pages="{{ paginate.pages }}" data-id="{{ section.id }}" >
              <div class="sf__product-listing {% if grid_layout == 'list' %} sf__col-one only-row{% else %} sf__col-{{grid_cols}}{% endif %} relative" data-width-item="{{ grid_columns_view }}">
                <div class="sf__collection-wrapper" data-product-list>
                  <div class="flex flex-wrap -mx-2 xl:-mx-3 sf-collection-items">
                    {%- for product in collection.products -%}
                    <div class="sf__col-item w-6/12 md:w-4/12 px-2 xl:px-3">
                      {% render 'product-card', product: product %}
                    </div>
                    {%- endfor -%}
                  </div>
                </div>
              </div>
            </div>
            {% if paginate.pages > 1 %}
            <div class="sf__collection-paginate text-center mt-10">
              {% if paginate_type == 'infinite' or paginate_type == 'loadmore' %}
              {% capture loadmore_text %}{{ 'collections.paginate.load_more' | t }}{% endcapture %}
              {% if loadmore_text contains 'translation missing' %}
              {% capture loadmore_text %}Load more{% endcapture %}
              {% endif %}
              <button class="sf__btn sf__btn-primary" data-load-more>
                <span>{{ loadmore_text }}</span>
              </button>
              {% else %}
              {% render 'pagination', paginate: paginate, anchor: '' %}
              {% endif %}
            </div>
            {% endif %}
          </div>
          {%- endif -%}
          {%- endpaginate -%}
        </div>
        {%- if collection.description != blank -%}
          <div class="sf__collection-description mt-10">
            {{ collection.description }}
          </div>
        {%- endif -%}
      </div>
    </div>
  </div>

  {% if st.show_sorting %}
  {% render 'sort-by-mobile' %}
  {% endif %}
</section>

{% schema %}
{
"name": "Product listing",
"settings": [
{
"type": "header",
"content": "General"
},
{
"type": "select",
"id": "container",
"label": "Container type",
"default": "container",
"options": [
{
"value": "container-fluid",
"label": "Default"
},
{
"value": "w-full",
"label": "Full width"
},
{
"value": "container",
"label": "Use container box"
}
]
},
{
"type": "header",
"content": "layout"
},
{
"type": "radio",
"id": "grid_layout",
"label": "Default layout",
"options": [
{
"label": "Grid",
"value": "grid"
},
{
"label": "List",
"value": "list"
}
],
"default": "grid"
},
{
"type": "select",
"id": "grid_columns",
"label": "Products per row",
"info": "For \"Grid\" layout and device width > 1024px",
"options": [
{
"value": "2",
"label": "2"
},
{
"value": "3",
"label": "3"
},
{
"value": "4",
"label": "4"
},
{
"value": "5",
"label": "5"
}
],
"default": "3"
},
{
"type": "range",
"id": "pagination_limit",
"label": "Products per page",
"default": 12,
"min": 6,
"max": 24,
"step": 1
},
{
"type": "checkbox",
"id": "show_columns_switcher",
"label": "Show columns switcher",
"default": true
},
{
"type": "header",
"content": "Sorting and Filtering"
},
{
"type": "checkbox",
"id": "show_sorting",
"label": "Enable sorting",
"default": true
},
{
"type": "checkbox",
"id": "show_filter",
"label": "Enable filtering",
"default": false
},
{
"type": "select",
"id": "filters_type",
"label": "Filters type",
"options": [
{
"label": "Filters by Shopify",
"value": "storefront_filters"
},
{
"label": "Filters by custom tags",
"value": "tags_filter"
}
],
"default": "storefront_filters",
"info": "Customize [filters by Shopify](\/admin\/menus)"
},
{
"type": "select",
"id": "sidebar",
"label": "Filters position",
"options": [
{
"value": "leftColumn",
"label": "Left sidebar"
},
{
"value": "rightColumn",
"label": "Right sidebar"
},
{
"value": "fixed",
"label": "Off-canvas sidebar"
}
],
"default": "leftColumn"
},
{
"type": "text",
"id": "sidebar_title",
"label": "Filters title",
"default": "Filters",
"info": "Leave blank to hide"
},
{
"type": "checkbox",
"id": "limit_height_widget",
"label": "Limit filter widget's height",
"default": false
},
{
"type": "range",
"id": "limit_height",
"label": "Max height",
"default": 300,
"step": 10,
"min": 200,
"max": 600,
"unit": "px"
},
{
"type": "header",
"content": "Paginate"
},
{
"type": "select",
"id": "paginate_type",
"label": "Paginate type",
"default": "paginate",
"options": [
{
"value": "paginate",
"label": "Paging by number"
},
{
"value": "loadmore",
"label": "Load more button"
},
{
"value": "infinite",
"label": "Infinite scroll"
}
]
}
],
"blocks": [
{
"type": "filter",
"name": "Filter by tags",
"settings": [
{
"type": "paragraph",
"content": "[Filter values correspond to the value \"Tags\" in the product.](https:\/\/docs.shopify.com\/manual\/your-store\/products\/edit-tags)"
},
{
"type": "paragraph",
"content": "The filters won't work with the tags include some special symbols such as %, $ and other currency symbols"
},
{
"type": "paragraph",
"content": "Note: if the tag contains no products, it will not appear."
},
{
"type": "select",
"id": "design_filtergroup",
"label": "Design",
"options": [
{
"value": "default",
"label": "List"
},
{
"value": "inrow",
"label": "Inline link"
},
{
"value": "button",
"label": "Button"
},
{
"value": "color",
"label": "Color"
}
],
"default": "default"
},
{
"type": "text",
"id": "title",
"label": "Title",
"default": "Tags"
},
{
"type": "textarea",
"id": "filtergroup",
"label": "Tags List",
"default": "Vintage,tops,shirts",
"info": "Example: Vintage,tops,shirts..."
},
{
"type": "checkbox",
"id": "show_label",
"label": "Show color with label",
"default": false,
"info": "Work with filter colors"
},
{
"type": "checkbox",
"id": "use_accordion",
"label": "Enable collapsible",
"default": true
},
{
"type": "checkbox",
"id": "open_filtergroup",
"label": "Expand by default",
"default": true
}
]
},
{
"type": "collections",
"name": "Collections list",
"settings": [
{
"type": "text",
"id": "title",
"label": "Title",
"default": "Collections"
},
{
"type": "link_list",
"id": "menu",
"label": "Menu",
"info": "Only show items linked to a collection"
},
{
"type": "checkbox",
"id": "use_accordion",
"label": "Enable collapsible",
"default": true
},
{
"type": "checkbox",
"id": "open_filtergroup",
"label": "Expand by default",
"default": true
}
]
}
]
}
{% endschema %}

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

KizvoArt
Visitor
3 0 0

Hello, I solved the problem, you can see the preview on my website.

 

Fon Perde

 

Paste the following code main-collection-product-grid.liquid here.

 

<script src="{{ 'collection-template.min.js' | asset_url }}" defer="defer"></script>
{%- liquid
  assign st = section.settings

  assign initial_column = st.grid_columns
  if st.grid_layout == 'list'
    assign initial_column = 1
  endif

  assign show_filter = st.show_filter
  if st.filters_type == 'storefront_filters' and collection.filters.size == 0
    assign show_filter = false
  endif
  if st.filters_type == 'tags_filter' and section.blocks.size == 0
    assign show_filter = false
  endif 
-%}

<section
  class="facest-filters-section"
  data-section-type="collection-template"
  data-section-id="{{ section.id }}"
  data-filters-type="{{ st.filters_type }}"
  data-filters-position="{{ st.sidebar }}"
  data-enable-filters="{{ st.show_filter }}"
  data-enable-sorting="{{ st.show_sorting }}"
  data-show-col-switchers="{{ st.show_columns_switcher }}"
  data-pagination-type="{{ st.paginate_type }}"
  data-product-count="{{ collection.products.size }}"
  data-initial-column="{{ initial_column }}"
  data-view="{{ template.name }}"
>
  <div class="{{ st.container }}{% if st.container == 'w-full' %} px-4 xl:px-[30px]{% endif %}">
    <div class="sf__collection-container {% if st.show_filter %}sidebar__{{ st.sidebar }}{% endif %}">
      {%- render 'collection-sidebar', show_filter: show_filter -%}
      <div id="CollectionProductGrid" class="flex-1 w-full {% unless st.sidebar == 'fixed' or st.show_filter == false %}xl:w-3/4 2xl:w-4/5{% endunless %}">
        {%- render 'collection-page-toolbar', section: section, results: collection -%}
        {%- liquid 
            if st.show_filter
              if st.filters_type == 'storefront_filters'
                render 'collection-filters-facets', results: collection
              else
                render 'selected-tags-filter'
              endif
            endif
        -%}
        {%- paginate collection.products by st.pagination_limit -%}
          {%- if collection.products.size == 0 -%}
            <div class="empty-collection py-24 flex flex-col w-full items-center">
              <span>{%- render 'icon', name: 'empty-collection', fill: '#9a9a9a' -%}</span>
              <p class="mt-5 text-color-subtext">{{ 'collections.general.no_matches' | t }}</p>
            </div>
          {%- else -%}
            <div
              class="sf__product-listing sf__col-{{ initial_column }}"
              data-total-pages="{{ paginate.pages }}"
              data-product-container
            >
              <div class="mt-6 flex flex-wrap -mx-2 xl:-mx-3">
                {%- for product in collection.products -%}
                  <div class="sf__col-item w-6/12 md:w-4/12 px-2 xl:px-3">
                    {%- render 'product-card', product: product, section: section, product_card_collection: collection -%}
                  </div>
                {%- endfor -%}
              </div>
            </div>
            {% if paginate.pages > 1 %}
              <div class="text-center mt-10">
                {%- if st.paginate_type == 'paginate' -%}
                  {%- render 'pagination', paginate: paginate, anchor: '' -%}
                {%- else -%}
                  <button class="sf__btn sf__btn-primary" data-load-more>
                    <span>
                      {%- render 'new-locale', key: 'collections.paginate.load_more' -%}
                    </span>
                    {%- render 'icon', name: 'spinner', size: 'medium' -%}
                  </button>
                {%- endif -%}
              </div>
            {% endif %}
          {%- endif -%}
          {%- if collection.description != blank -%}
          <div class="sf__collection-description mt-10">
            {{ collection.description }}
          </div>
        {%- endif -%}
        {%- endpaginate -%}
      </div>
    </div>
  </div>

  {% if st.show_sorting %}
    {%- render 'sort-by-mobile', results: collection -%}
  {% endif %}
</section>

{% schema %}
{
  "name": "Product listing",
  "settings": [
    {
      "type": "header",
      "content": "General"
    },
    {
      "type": "select",
      "id": "container",
      "label": "Container type",
      "default": "container",
      "options": [
        {
          "value": "container-fluid",
          "label": "Default"
        },
        {
          "value": "w-full",
          "label": "Full width"
        },
        {
          "value": "container",
          "label": "Use container box"
        }
      ]
    },
    {
      "type": "header",
      "content": "layout"
    },
    {
      "type": "radio",
      "id": "grid_layout",
      "label": "Default layout",
      "options": [
        {
          "label": "List",
          "value": "list"
        },
        {
          "label": "Grid",
          "value": "grid"
        }
      ],
      "default": "grid"
    },
    {
      "type": "select",
      "id": "grid_columns",
      "label": "Products per row in Grid layout",
      "info": "For devices with screen width greater than 1024px",
      "options": [
        {
          "value": "2",
          "label": "2"
        },
        {
          "value": "3",
          "label": "3"
        },
        {
          "value": "4",
          "label": "4"
        },
        {
          "value": "5",
          "label": "5"
        }
      ],
      "default": "3"
    },
    {
      "type": "checkbox",
      "id": "show_columns_switcher",
      "label": "Show columns switcher",
      "default": true
    },
    {
      "type": "header",
      "content": "Pagination"
    },
    {
      "type": "range",
      "id": "pagination_limit",
      "label": "Products per page",
      "default": 12,
      "min": 6,
      "max": 50,
      "step": 1
    },
    {
      "type": "select",
      "id": "paginate_type",
      "label": "Pagination type",
      "default": "paginate",
      "options": [
        {
          "value": "paginate",
          "label": "Paging by number"
        },
        {
          "value": "loadmore",
          "label": "Load more button"
        },
        {
          "value": "infinite",
          "label": "Infinite loading"
        }
      ]
    },
    {
      "type": "header",
      "content": "Sorting and Filtering"
    },
    {
      "type": "checkbox",
      "id": "show_sorting",
      "label": "Enable sorting",
      "default": true
    },
    {
      "type": "checkbox",
      "id": "show_filter",
      "label": "Enable filtering",
      "default": false
    },
    {
      "type": "select",
      "id": "filters_type",
      "label": "Filters type",
      "options": [
        {
          "label": "Storefront filters",
          "value": "storefront_filters"
        },
        {
          "label": "Filters by custom tags",
          "value": "tags_filter"
        }
      ],
      "default": "storefront_filters",
      "info": "Note: the Storefront filters will be hidden if your collection contains more than 1000 products. [Learn more about filters](/admin/menus)"
    },
    {
      "type": "select",
      "id": "sidebar",
      "label": "Filters position",
      "options": [
        {
          "value": "leftColumn",
          "label": "Left sidebar"
        },
        {
          "value": "rightColumn",
          "label": "Right sidebar"
        },
        {
          "value": "fixed",
          "label": "Off-canvas sidebar"
        }
      ],
      "default": "leftColumn"
    },
    {
      "type": "text",
      "id": "sidebar_title",
      "label": "Filters title",
      "default": "Filters",
      "info": "Leave blank to hide"
    },
    {
      "type": "checkbox",
      "id": "limit_height_widget",
      "label": "Limit filter widget's height",
      "default": false
    },
    {
      "type": "range",
      "id": "limit_height",
      "label": "Max height",
      "default": 300,
      "step": 10,
      "min": 200,
      "max": 600,
      "unit": "px"
    },
    {
      "type": "header",
      "content": "Storefront filters settings"
    },
    {
      "type": "paragraph",
      "content": "For Storefront filters only."
    },
    {
      "type": "checkbox",
      "id": "change_product_variant_on_fitlering",
      "label": "Change product card variant on filtering",
      "default": true,
      "info": "Change product card options, price and image based on the variant after filtering."
    },
    {
      "type": "checkbox",
      "id": "show_product_count",
      "label": "Show results count on filter item",
      "default": true
    },
    {
      "type": "text",
      "id": "collapsed_groups",
      "label": "Collapsed filter groups",
      "default": "Brand, Vendor, Size",
      "info": "Filters groups that collapsed by default. Separate by comma."
    },
    {
      "type": "text",
      "id": "color_swatches",
      "label": "Color swatches group",
      "default": "color,colour,couleur,farbe",
      "info": "Enter color option name, separate by comma."
    }
  ],
  "blocks": [
    {
      "type": "filter",
      "name": "Filter by tags",
      "settings": [
        {
          "type": "paragraph",
          "content": "[Filter values correspond to the value \"Tags\" in the product.](https://docs.shopify.com/manual/your-store/products/edit-tags)"
        },
        {
          "type": "paragraph",
          "content": "The filters won't work with the tags include some special symbols such as %, $ and other currency symbols"
        },
        {
          "type": "paragraph",
          "content": "Note: if the tag contains no products, it will not appear."
        },
        {
          "type": "select",
          "id": "design_filtergroup",
          "label": "Design",
          "options": [
            {
              "value": "default",
              "label": "List"
            },
            {
              "value": "inrow",
              "label": "Inline link"
            },
            {
              "value": "button",
              "label": "Button"
            },
            {
              "value": "color",
              "label": "Color"
            }
          ],
          "default": "default"
        },
        {
          "type": "text",
          "id": "title",
          "label": "Title",
          "default": "Tags"
        },
        {
          "type": "textarea",
          "id": "filtergroup",
          "label": "Tags List",
          "default": "Vintage,tops,shirts",
          "info": "Example: Vintage,tops,shirts..."
        },
        {
          "type": "checkbox",
          "id": "show_label",
          "label": "Show color with label",
          "default": false,
          "info": "Work with filter colors"
        },
        {
          "type": "checkbox",
          "id": "use_accordion",
          "label": "Enable collapsible",
          "default": true
        },
        {
          "type": "checkbox",
          "id": "open_filtergroup",
          "label": "Expand by default",
          "default": true
        }
      ]
    },
    {
      "type": "collections",
      "name": "Collections list",
      "settings": [
        {
          "type": "text",
          "id": "title",
          "label": "Title",
          "default": "Collections"
        },
        {
          "type": "link_list",
          "id": "menu",
          "label": "Menu",
          "info": "Only show items linked to a collection"
        },
        {
          "type": "checkbox",
          "id": "show_image",
          "label": "Show featured image",
          "default": false
        },
        {
          "type": "checkbox",
          "id": "use_accordion",
          "label": "Enable collapsible",
          "default": true
        },
        {
          "type": "checkbox",
          "id": "open_filtergroup",
          "label": "Expand by default",
          "default": true
        }
      ]
    }
  ]
}
{% endschema %}

 

Then locate the collection-page-header.liquid page. After finding this page, delete the following code. The collection description text will drop down.

 

  assign collection_desc = collection.description
    if collection.handle == 'all'
      assign collection_desc = section.settings.collection_all_desc
    endif