Jump to content

[SOLVED] Change the number of products in dropdown menu


Recommended Posts



In the back-end, I change the 10 per default show product per page from 10 to 12. 12 is now showing  in the dropdown menu with 10, 20 and 50. Now I'd like to know where I can change these number of products 10, 20 and 50. I think it's in the core but where ?



Link to comment
Share on other sites

check file: classes/controllers/FrontController.php

there is a code:

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

you can change number of products there

Link to comment
Share on other sites

Thank you very much.

I've changed by :

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

but in my dropdown menu, I only have 12 (customized in the back-end) and 24 but not 48, why ?



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...