Hey! ![]()
When the product slider is utilized multiple times across different sections, it ceases to function properly. Specifically, after multiple uses, the slider stops displaying products altogether, showing only a maximum of 20 products across all sections where it’s implemented. And start repeating same product after 20 products
Please thoroughly review the code related to the product slider functionality.
https://k0fohx0ewybfm3sy-68083908825.shopifypreview.com
## {{ section.settings.title | escape }}
{% for block in section.blocks %}
{% assign product = all_products[block.settings.product_item] %}
{% comment %}
{{ product.title }}
{{ product.price | money }}
{% endcomment %}
{% endfor %}
{% schema %}
{
"name": "Products slider",
"settings": [
{
"type": "range",
"id": "navigation_amount",
"min": 2,
"max": 6,
"step": 1,
"default": 6,
"label": "Change the number of cards in view"
},
{
"type": "color",
"id": "navigation_color",
"label": "Change color of the pagination|navigation|scrollbar"
},
{
"type": "text",
"id": "title",
"default": "Products slider",
"label": "t:sections.featured-collection.settings.title.label"
}
] ,
"blocks": [
{
"type": "card",
"name": "Product card",
"settings": [
{
"type": "product",
"id": "product_item",
"label": "Choose the product you want to displayed"
}
]
}
] ,
"presets": [
{
"name": "Product slider",
"category":"Custom"
}
]
}
{% endschema %}
