AmFaye Posted July 4, 2012 Share Posted July 4, 2012 Hello I added a module in prestashope. In this module I list information from a new table I created. I wish I could do pagination when displaying. For example suppose I have 100 data I want to display 10 per page. Any idea? Link to comment Share on other sites More sharing options...
Anton_bcn Posted June 9, 2013 Share Posted June 9, 2013 i think u need to get understand how it works his own pagination so u need to look at function in classes/controller/FrontController.php: Function is : public function pagination($nbProducts = 10) {... if you good in php you can understand how it works Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2013 Share Posted June 9, 2013 you should limit query for example, for 10 products. for example: LIMIT x,10 where x = $_GET['page'] then create links with: <a href=your.page.com/index.php?page=1>page 1</a> <a href=your.page.com/index.php?page=2>page 2</a> <a href=your.page.com/index.php?page=3>page 3</a> ... etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now