Discussion

Pagination of products

Hi,

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.

Thanks, Daniel

Purvesh
Purvesh
1 month ago

Hello Daniel,

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?

humble92
humble92
4 weeks ago

Hi,

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

Want to contribute?

© AvoRed 2021 Privacy