AbanteCart Community
AbanteCart Development => Development Help Needed => Topic started by: ggauravbhandari on June 02, 2018, 08:53:47 AM
-
Hello,
I made shop page where all category product is showing. I want to use default pagination and searching and sorting how we can use it ?
I made new controller and page and all 72 product is coming as per my query. Can anyone suggest how we use default pagination and sorting on this.
Thank you
-
Welcome to AbanteCart forum Ggauravbhandari
You can check how pagination is built on category product listing
Here is the link:
https://github.com/abantecart/abantecart-src/blob/3fc80ce364f64e21767a56cc008ca6b6d7edbbb4/public_html/storefront/controller/pages/product/category.php#L338
Request is constructed here:
https://github.com/abantecart/abantecart-src/blob/3fc80ce364f64e21767a56cc008ca6b6d7edbbb4/public_html/storefront/controller/pages/product/category.php#L107
Hope this helps.
-
Hello thanks for reply. I already added this but pagination is not appearing.