John_John Posted January 30, 2013 Share Posted January 30, 2013 (edited) In the default category page there is a TPL call "nbr-product-page.tpl" This enables sorting of how many products are visible per page. It seems that there is a default value of 10,20,50 How can i change this manually? Edited January 31, 2013 by John_John (see edit history) Link to comment Share on other sites More sharing options...
PotionsFactory Posted January 30, 2013 Share Posted January 30, 2013 You're looking for a variable called $nArray You can override your FrontController to change this array. The current code (found in FrontController.php at Line 847) $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 also go to your Back Office -> Preferences -> Products and change and default product count. I don't know if that will increment the count like you'd want, though. 1 Link to comment Share on other sites More sharing options...
John_John Posted January 31, 2013 Author Share Posted January 31, 2013 Ah, did not know it was located in Frontcontroller.php Have tried to change default product visibility but didn't work well. Changing the array works! thanks 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