
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 I Find Google Maps Leads in Minutes with Claude Desktop + BrowserAct [No Code]](/_astro/How%20I%20Find%20Google%20Maps%20Leads%20in%20Minutes%20with%20Claude%20Desktop%20_%20BrowserAct%20_No%20Code_.DiiNHRev_3N5M4.webp)
%20The%203%20Biggest%20Updates%20for%20Store%20Owners.CY244rkl_1XVeRg.webp)
![How To Connect Google Search Console with Shopify - [2027]](/_astro/How%20To%20Connect%20Google%20Search%20Console%20with%20Shopify%20-%20_2027_%20(Step-by-Step).DoPyjVIZ_Z20rrU7.webp)


