How can we paginate the product list page?
When the number of products are too many, it slows down the website speed, so pagination is required on the list page.
Pagination should be there. I am guessing you are talking about the frontend category page where it displayed the all the product from the same category right?
I did it by hard coding as follows because I could not find out any relevant UI for adjusting how to show products:
[CategoryRepository.php] $builder->where('type', '!=', 'VARIATION') ->simplePaginate(15);
You mean another approach which is better exists, right? Please let me know how to do that.
Thanks a lot. Daniel
© AvoRed 2021 Privacy