Forum
Paginate perch_shop_products() result
Is it possible to paginate the results of perch_shop_products()
the same way you can for perch_content_custom()
?
Is it possible to paginate the results of perch_shop_products()
the same way you can for perch_content_custom()
?
Yes - what problem are you seeing?
I'm not seeing any pagination with the following function:
I wasn't sure where the pagination template needed to live but I copied it to shop > pagination > default.html
Have you added pagination controls to your
product-grid-item.html
template?Ah, I misunderstood how the template worked - I thought it could simply be specified using
'page-link-template'=>'pagination/default.html'
, but I've now addedto my
product-grid-item.html
template and it works, thanks!