I have 3 collections displayed on my page right now.
I want to have one pagination at the very bottom that will load the next 50 products for all 3 collections if there are any.
How can I do that?
this is my code:
{% paginate collections.mycollection1.products by settings.pagination_limit %}
<div style="clear:both;">
<h1>Title</h1>
{% assign products_per_row = "4" %}
{% assign limit = 50 %}
{% assign products = collections.mycollection1.products %}
{% include 'product-loop' with settings.collection_sidebar %}
{% include 'pagination' with settings.collection_sidebar %}
</div>
{% endpaginate %}
{% paginate collections.mycollection2.products by settings.pagination_limit %}
<div style="clear:both;">
<h1>Title</h1>
{% assign products_per_row = "4" %}
{% assign limit = 50 %}
{% assign products = collections.mycollection2.products %}
{% include 'product-loop' with settings.collection_sidebar %}
{% include 'pagination' with settings.collection_sidebar %}
</div>
{% endpaginate %}
{% paginate collections.mycollection3.products by settings.pagination_limit %}
<div style="clear:both;">
<h1>Title</h1>
{% assign products_per_row = "4" %}
{% assign limit = 50 %}
{% assign products = collections.mycollection3.products %}
{% include 'product-loop' with settings.collection_sidebar %}
{% include 'pagination' with settings.collection_sidebar %}
</div>
{% endpaginate %}