District theme number of products per page?

I would like to increase the number of products per page in District theme, I have tried changing the code numbers and it doesn’t work. Currently I have 3 rows of 4 products so 12 products per page. I want to change to 6 rows of 4 products per page so 24 products per page. This is what I have tried but got an error message:

Does anyone know what I’m doing wrong?

Thank you,
Dani

Please share code of your file

hey thanks for reaching out… you mean a code other than the one above? Where do I find it?

Yeah, I guess you must to code related product per page range at the top of this file, not just in schema code.

Ah ok… this?:

{% if section.blocks.size > 0 %}
{%- assign enable_sidebar = true -%}
{% else %}
{%- assign enable_sidebar = false -%}
{% endif %}
{%- assign products_per_page = section.settings.products_per_page_range -%}

{% if section.settings.image_placement != ‘default’ and section.settings.image_placement != ‘hidden’ and collection.image %}

{{ collection.title }}
{% endif %}

{% paginate collection.products by products_per_page %}

{% include 'breadcrumb' %} {% include 'social-icons' %}

{{ collection.title }}

{% include 'collection-sorting' %}
{% if section.settings.image_placement == 'default' and collection.image %}
{{ collection.title }}
{% endif %} {% if collection.description != blank %}
{{ collection.description }}
{% endif %}

{% if enable_sidebar %}

{{ 'layout.navigation.collection_menu' | t}}
{% endif %}
{% comment %} Loop through our products in the current collection. See the snippet 'product-grid-item' for the layout. {% endcomment %} {% for product in collection.products %} {% include 'product-list-item' %} {% else %}

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

{% endfor %}

{% if paginate.pages > 1 %}

{% include 'pagination' %} {% endif %}

{% if enable_sidebar %}

{% endif %}
{% endpaginate %}

{% schema %}
{
“name”: “Collection list pages”,
“settings”: [
{
“type”: “range”,
“id”: “products_per_page_range”,
“label”: “Number of products on each page”,
“min”: 12,
“max”: 48,
“step”: 12,
“default”: 12
},
{
“type”: “select”,
“id”: “image_placement”,
“label”: “Collection image placement”,
“options”: [
{ “value”: “default”, “label”: “After collection title” },
{ “value”: “above”, “label”: “After navigation” },
{ “value”: “above-full”, “label”: “After navigation full width” },
{ “value”: “hidden”, “label”: “Hidden” }
],
“default”: “default”