Jump to content

how to manage pagination


anupama
 Share

Recommended Posts

Hi all,

My doubt about pagination. I can't use pagination method used on the prestashop, because products of all categories list in a product list page .please let me know, how to manage pagination in this situation...



thanks

Share this post


Link to post
Share on other sites

i didn't understand your question.

If you're looking for the pagination files:
pagination.php in root folder



If you want to change the number of items displayed on the page:

change:
$nArray = intval(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10 ? array(intval(Configuration::get('PS_PRODUCTS_PER_PAGE')), 24, 48) : array(24, 48);

to:
$nArray = intval(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10 ? array(intval(Configuration::get('PS_PRODUCTS_PER_PAGE')), 10, 20, 50) : array(10, 20, 50);


i think there is another file to modify as well but i forgot which one.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More