Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double products #189

Closed
MrBlood opened this issue Jan 11, 2018 · 1 comment
Closed

Double products #189

MrBlood opened this issue Jan 11, 2018 · 1 comment

Comments

@MrBlood
Copy link

MrBlood commented Jan 11, 2018

Everything was working great... then all of a sudden - (only with infinite scroll ON) --- I get duplicate products and some are missing. It shows the correct # of products, it's just that some are duplicates... then some do not show at all.

Again, not sure what happened. The only difference was that new products were entered. Have you seen this problem before. Right now I have it turned off, so normal pagination is working... but we really love the scroll... so if you can give me any possible ideas???

Thanks, AB

@gsomoza
Copy link
Member

gsomoza commented Jan 12, 2018

There are a couple of reasons why something like this could happen:

  1. The URL structure changed and now InfinteScroll cannot detect what the URL for the "next" product page is. This is unlikely because we simply retrieve that URL from the pagination itself, so unless the original link is broken InfinteScroll should work with virtually any type of URL.
  2. The structure or semantics of the HTML around the pagination changed, so InfinteScroll can't find the pagination controls anymore. E.g. the class name for the "next" link changed.
  3. The InfiniteScroll configuration settings were changed in the Admin, causing InfiniteScroll to not be able to find the "next" pagination link anymore in the HTML.
  4. Custom decorating scripts after "next" page-loads (e.g. attached via event listeners on IAS events) are causing the messed up contents to be displayed. A common issue on pages that run lots of decorating logic on the catalog after page-load.

This should be enough information for a developer to investigate and fix the problem. Please refer to our Wiki if you want more details about how things work. Hope this helps!

I'll close this ticket, for now, because this is most likely not a bug on the extension. But if you find that it is, then please feel free to re-open or submit a new ticket with information about how to duplicate the bug.

@gsomoza gsomoza closed this as completed Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants