Horizon theme bug - Infinite scroll

Short description of issue

Infinite scroll duplicates last row of products on search results page

Link to Shopify Store

atelier.secretgarden.ro

Reproduction steps

Affected page: Search results (/search?q=…)
Feature: Infinite scroll / pagination

Browser: any browser

Description:
On search results pages, when infinite scroll is enabled, products from the last visible row are duplicated when the next page is loaded. This happens consistently after scrolling enough to trigger loading of the next page.

Instead of appending only new products, the script re-inserts the final row from the previous page, resulting in duplicated product cards.

Steps to reproduce:

  • Go to any search results page (example: /search?q=buchet+mireasa)

  • Scroll down until infinite scroll loads the next page

  • Observe the product grid after the page changes

Additional info

Expected behavior:
Only new products from the next page should be appended to the grid.

Actual behavior:
The last row of products from the previous page is duplicated and displayed again at the top of the newly loaded products.

Impact:

Poor user experience

Duplicate products displayed

Can confuse customers and affect conversion

Frequency:
100% reproducible

Solved with a temporary solution from the comunity forum: Horizon theme bug

What type of topic is this

Troubleshooting
Bug report

Upload screenshot(s) of issue