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?
Hi @mrbooom88 ,
Please send me the code of the collection-template.liquid file, I will check it for you
can you pleaser check older vertion
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.
orignal
Hi @mrbooom88 ,
Please send me the code of the collection.json file, I will check it for you
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”
]
}
Hi @mrbooom88 ,
Please send me the code of main-collection-product-grid.liquid file, I will show you how to add collection description
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 -%}
{{ 'collections.general.no_matches' | t }}
{% if st.show_sorting %}
{% render ‘sort-by-mobile’ %}
{% endif %}
{% 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”
},
{
“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.”
},
{
“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 %}
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 -%}
{% 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!
Hello, I solved the problem, you can see the preview on my website.
Paste the following code main-collection-product-grid.liquid here.
{%- 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
-%}
{% 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

