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

Duplicates Collection in Shopify #75

Open
estebangallego opened this issue Oct 1, 2021 · 1 comment
Open

Duplicates Collection in Shopify #75

estebangallego opened this issue Oct 1, 2021 · 1 comment

Comments

@estebangallego
Copy link

estebangallego commented Oct 1, 2021

Describe the bug
Once you start scrolling and at the last product, it will duplicate all the products again and again.

To Reproduce
Steps to reproduce the behavior:

  1. Scroll down
  2. At the last product in the collection, the batch of products will repeat with no stop

Expected behavior
Stop scrolling at the last product

Link
https://honorthegift.co/collections/accessories

Additional context
Please help solving this bug

@tenitski
Copy link

This is likely because you had paginate.previous and/or paginate.parts in Pagination block.
It works for me after I removed those two, leaving only paginate.next like shown in the docs:

{% paginate collection.products by 3 %}
    <div id="AjaxinateContainer" >
      {% for product in collection.products %}
        {% include 'product-grid-item' %}
      {% endfor %}
    </div>

    <div id="AjaxinatePagination">
      {% if paginate.next %}
        <a href="{{ paginate.next.url }}">Loading More</a>
      {% endif %}
    </div>
{% endpaginate %}

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