Liquid, JavaScript, themes, sales channels
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Is it even possible to paginate filtered collections as below?
{%- liquid
assign filtered_collection = collections | where: collections.metafields.custom.x, 'foo'
-%}
{%- paginate filtered_collection by xyz -%}
something
{%- endpaginate -%}
I tried as above but this returns, 'filtered_collection' is not paintable.
Wondering if Shopify/liquid can paginate filtered collections
I am interested in this topic because I want to make sure the pagination number is correct and the items displayed on the page are correct.
@begginer1231
Follow below step for pagination :
{%- paginate blog.articles by 5 -%}
{%- for product in collection.products -%}
<!-- show product details here -->
{%- endfor -%}
{{ paginate | default_pagination: next: 'Older', previous: 'Newer' }}
{%- endpaginate -%}
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022