Dublicated Products

Hello there,

I’m facing a sudden issue with my collection template. I’ve created a new collection template based on Default collection without any changes in the code that loops reading items. But i’ve found almost all the products are dublicated after some scrolls and keep showing the same products. i didn’t find any isse with the code or apps. so if any one have faced this isse before i would appreciate the help

This happens when the “infinite scroll” or “load more” logic keeps appending the same set of products instead of fetching the next page — usually due to a missing or incorrect page/pagination parameter in your AJAX or section rendering code.

Quick solution:

  1. Check your collection template or JS handling infinite scroll/load more.
  2. Make sure the next page is being fetched correctly — e.g. use:
/collections/{{ collection.handle }}?page={{ current_page + 1 }}
  1. Ensure the new items replace or append properly without reloading the same section multiple times.
  2. Clear cache and test again.

If you’re using Shopify 2.0, confirm that paginate and collection.products are used properly in your loop:

{% paginate collection.products by 24 %}
  {% for product in collection.products %}
    ...
  {% endfor %}
{% endpaginate %}

In short:** Fix or restore correct pagination logic in your scroll/load code.

Thanks alot for your replay. But i’ve checked all related files every thing look like normal as it used be in the default collection. Any other related solution i may try ?

Hey,

There may issue with the code itself. May I have your Store url and collab code so that I can take a look into it.
Thanks

Thanks alot for your replay. I’ve changed the Pagination Type from infinite scroll to classic and it works fine when click the next page. but i need to keep it in infinite scroll

I kept this collection in infinite scroll type to check it

After a few scrolls you may notice the products are repeated