Here is the main-collection.liquid file code. I want to remove the pagination from the collection page and show all products on one page, as I have too many products. Impulse Theme.
{%- liquid
assign current_filter_size = 0
for filter in collection.filters
assign current_filter_size = current_filter_size | plus: filter.active_values.size
endfor
-%}
{%- endpaginate -%}
{%- if section.settings.enable_sidebar == false or section.settings.filter_style == ‘drawer’ or collection.filters.size == 0 -%}
{% comment %}
Override grid styles if sidebar is disabled
{% endcomment %}
{% style %}
.collection-content .grid__item–sidebar { width: 0; padding:0; }
.collection-content .grid__item–content { width: 100%; }
.grid__item–sidebar { position: static; overflow: hidden; }
{% endstyle %}
{%- endif -%}
{% schema %}
{
“name”: “t:sections.main-collection.name”,
“settings”: [
{
“type”: “header”,
“content”: “t:sections.main-collection.settings.header_filtering_and_sorting”
},
{
“type”: “checkbox”,
“id”: “enable_sidebar”,
“label”: “t:sections.main-collection.settings.enable_sidebar.label”,
“default”: true,
“info”: “t:sections.main-collection.settings.enable_sidebar.info”
},
{
“type”: “checkbox”,
“id”: “collapsed”,
“label”: “t:sections.main-collection.settings.collapsed.label”,
“default”: true
},
{
“type”: “select”,
“id”: “filter_style”,
“label”: “t:sections.main-collection.settings.filter_style.label”,
“default”: “sidebar”,
“options”: [
{
“value”: “sidebar”,
“label”: “t:sections.main-collection.settings.filter_style.options.sidebar.label”
},
{
“value”: “drawer”,
“label”: “t:sections.main-collection.settings.filter_style.options.drawer.label”
}
]
},
{
“type”: “checkbox”,
“id”: “enable_color_swatches”,
“label”: “t:sections.main-collection.settings.enable_color_swatches.label”,
“info”: “t:sections.main-collection.settings.enable_color_swatches.info”
},
{
“type”: “checkbox”,
“id”: “enable_swatch_labels”,
“label”: “t:common.enable_swatch_labels.label”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_sort”,
“label”: “t:sections.main-collection.settings.enable_sort.label”,
“default”: true
}
],
“blocks”: [
{
“type”: “collection_description”,
“name”: “t:sections.main-collection.blocks.collection_description.name”,
“limit”: 1
},
{
“type”: “product_grid”,
“name”: “t:sections.main-collection.blocks.products.name”,
“settings”: [
{
“type”: “checkbox”,
“id”: “enable_collection_count”,
“label”: “t:sections.main-collection.blocks.products.settings.enable_collection_count.label”,
“default”: true
},
{
“type”: “range”,
“id”: “per_row”,
“label”: “t:sections.main-collection.blocks.products.settings.per_row.label”,
“default”: 4,
“min”: 2,
“max”: 5,
“step”: 1
},
{
“type”: “range”,
“id”: “rows_per_page”,
“label”: “t:sections.main-collection.blocks.products.settings.rows_per_page.label”,
“default”: 7,
“min”: 3,
“max”: 20,
“step”: 1
},
{
“type”: “checkbox”,
“id”: “mobile_flush_grid”,
“label”: “t:sections.main-collection.blocks.products.settings.mobile_flush_grid.label”,
“default”: false
}
],
“limit”: 1
},
{
“type”: “subcollections”,
“name”: “t:sections.main-collection.blocks.subcollections.name”,
“settings”: [
{
“type”: “paragraph”,
“content”: “t:sections.main-collection.blocks.subcollections.settings.content”
},
{
“type”: “range”,
“id”: “subcollections_per_row”,
“label”: “t:sections.main-collection.blocks.subcollections.settings.subcollections_per_row.label”,
“default”: 5,
“min”: 2,
“max”: 5,
“step”: 1
}
],
“limit”: 1
}
]
}
{% endschema %}
