Jump to content

show amount of products per page


Recommended Posts

hi,

 

I have set my shop to display 12 products per page but my show drop down says 10 : 12 : 20 why?

 

Shouldn't it say: 12 : 24 : 32 and go up in increments of 12?

 

 

Hi,

That would be logical :)

 

go to /classes/FrontController.php

 

Find

public function pagination($nbProducts = 10)
{
 if (!self::$initialized)
  $this->init();
 $nArray = (int)(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10 ? array((int)(Configuration::get('PS_PRODUCTS_PER_PAGE')), 10, 20, 50) : array(10, 20, 50);
 // Clean duplicate values

 

And change the values, all "10" to "12", all 20 to 24 and so on ... :)

  • Like 1
Link to comment
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
×
×
  • Create New...