get_product_pagination
Get product objects via pagination.
To be used in combination with the following objects:
collection | get_product_pagination(pageSize) returns [paginate]
Params
-
collectioncollection: The collection object. -
pageSizenumber: Number of items per page.
Example
Get the list of products under the product category
{{#var paginate = collection | get_product_pagination(10) /}}
{{#for item in paginate.list}}
{{forloop.index}}: {{ item.title }}
{{/for}}
Was this article helpful to you?