
After following the steps in the tutorial, your Shopify collection page will display all of the products in the collection without the need for pagination. This will give your customers a better experience, as they will be able to see all of the products without having to click through multiple pages.
1- Download Scrollify
Download Scrollify from here
And upload Ajaxinate.min.js to your Asset folder of theme
2- Include Scrollify in main-collection-product-grid.liquid
Then add the following code to main-collection-product-grid.liquid
{{ 'ajaxinate.min.js' | asset_url | script_tag }}
Add the following code before {% schema %} in main-collection-product-grid.liquid
<script>
const endlessCollection = new Ajaxinate({
container: '#product-grid',
pagination: '.infinite_next',
});
</script>
3- Changing code in pagination.liquid file
Search for {%- if paginate.next -%} and add class="infinite_next" in <li>. So the code should look like below:
{%- if paginate.next -%}
<li class="infinite_next">
<a
href="{{ paginate.next.url }}{{ anchor }}"
class="pagination__item pagination__item--prev pagination__item-arrow link motion-reduce"
aria-label="{{ 'general.pagination.next' | t }}"
>
{%- render 'icon-caret' -%}
</a>
</li>
{%- endif -%}
4- Adding code in facet.js File
Search for static renderProductCount(html) and below that add the following code:
const endlessCollection = new Ajaxinate({
container: '#product-grid',
pagination: '.infinite_next',
});
5- Adding code in component-pagination.css File
.pagination__list{
display: none;
}
![How to Install Any Claude Skill From GitHub [Step-by-step] - Beginner Tutorial](/_astro/How%20to%20Install%20Any%20Claude%20Skill%20From%20GitHub%20_Step-by-step_%20-%20Beginner%20Tutorial.Cgks_FcS_1swru6.webp)
.Bktem256_23EEnI.webp)
.rrgOIsSz_Z2n0to0.webp)


