kiwiacw Posted May 31, 2009 Share Posted May 31, 2009 HiI want to change the amount of products to view per page to be in increments of 9 rather than 10.1. Where in back office do I alter to tell it that it's 9's not 10's 2. Where do I alter the values in the drop down to enable me to change the products to view per page options from 10.20. 30 in the front end?CheersAnna Link to comment Share on other sites More sharing options...
rocky Posted May 31, 2009 Share Posted May 31, 2009 To change the pagination dropdown values on the Front Office product lists, change the following line at the top of pagination.php: $nArray = array(10, 20, 50); 1 Link to comment Share on other sites More sharing options...
MCyril Posted July 9, 2009 Share Posted July 9, 2009 Hi there,How can we add a link ("show all") that just lists all the products in that category?I'm new at PS so I would really appreciate any guidance.Thank you,C. Link to comment Share on other sites More sharing options...
eqilibrium Posted July 9, 2009 Share Posted July 9, 2009 Hi,To choose the number of products to show per page there's an easier way, through the b.o., in tab Preferences/Articles and there is an option to input the number of products per page that you want.If you want to list all, that's simple, just put a high number like 100 in that field. Hope that helps ;-) 1 1 Link to comment Share on other sites More sharing options...
mandrin Posted May 13, 2010 Share Posted May 13, 2010 Naaaa, it gets's really messy that way, especially as I run the 3 column mod. Any help on this one?Regards, Link to comment Share on other sites More sharing options...
kevinmc Posted December 7, 2010 Share Posted December 7, 2010 It's a little late to answer this but I encounter this problem too.I just changed the PS_PRODUCTS_PER_PAGE in table ps_configuration on the database and it automatically calculates the rest.Cheers Link to comment Share on other sites More sharing options...
rocky Posted December 7, 2010 Share Posted December 7, 2010 It is better to change the "Products per page" on the Preferences > Products tab than edit the database manually. Link to comment Share on other sites More sharing options...
s33m0n Posted March 30, 2012 Share Posted March 30, 2012 thanks, good help rocky!! Link to comment Share on other sites More sharing options...
betyonfire Posted February 15, 2013 Share Posted February 15, 2013 I'm looking to increase the pagination options too -- adding 100 after 50 -- but things seem to be different now. I've found FrontController.php in /classes/controller/ I've copied it and put it in /overrides/classes/controller/ However it has had no affect on my site. Any suggestions? Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 15, 2013 Share Posted February 15, 2013 No need to code for this now. PS v1.5X Go to BO, Preferences > Products and find the Pagination section. PS v1.4.9X Back Office > Preferences > Products Products per page Link to comment Share on other sites More sharing options...
betyonfire Posted February 15, 2013 Share Posted February 15, 2013 Hi Bill, That setting only allows you to change the number of products show per page. I have that set to 50 and it's working fine. However the drop down only shows these options for viewing products: 10, 20, 50. I would like to add 100 as an option on the drop-down. Thanks. Link to comment Share on other sites More sharing options...
SaLiC Posted May 29, 2013 Share Posted May 29, 2013 Betyonfire, did you find a solution? I have the same problem, I would like, to change the amount of products to choose from in the dropdown. //Sara Link to comment Share on other sites More sharing options...
betyonfire Posted May 30, 2013 Share Posted May 30, 2013 This did actually work for me -- it just took some time for some reason. Link to comment Share on other sites More sharing options...
tino73 Posted July 2, 2013 Share Posted July 2, 2013 (edited) You open file "class/controller/FrontController.php" in Prestashop 1.5 About line 834, you look for: $nArray = (int)Configuration::get('PS_PRODUCTS_PER_PAGE') != 10 ? array((int)Configuration::get('PS_PRODUCTS_PER_PAGE'), 10, 20, 50) : array(10, 20, 50); Change for the numbers of products needed. Edited July 2, 2013 by vekia (see edit history) 2 Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2013 Share Posted July 2, 2013 thanks for your solution tino73 i just want to inform that i changed font in your answer, now it is more readable than before thanks ! regards Link to comment Share on other sites More sharing options...
thepan Posted August 24, 2013 Share Posted August 24, 2013 Thank you just worked fine for me, but why is this not a feature in the back office? Its nothing big at all Link to comment Share on other sites More sharing options...
Cvalya Posted September 9, 2013 Share Posted September 9, 2013 thanks for your solution tino73 i just want to inform that i changed font in your answer, now it is more readable than before thanks ! regards Hello! Maybe you know, how to add "Show all" option? Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 by default it isn't possible to add option to "show all" products. Only with core modifications Link to comment Share on other sites More sharing options...
anpori Posted March 26, 2014 Share Posted March 26, 2014 (edited) Works beautifuly!!! Thanks tino73!!! Version 1.5.6.2 Edited March 26, 2014 by anpori (see edit history) Link to comment Share on other sites More sharing options...
antoninmensik Posted June 25, 2014 Share Posted June 25, 2014 Thanks tino73, works as a charm!!! V 1.5.6 Link to comment Share on other sites More sharing options...
wutever0 Posted May 22, 2017 Share Posted May 22, 2017 You can add a "Show all" in Prestashop 1.6 with minor modifications (I would even call them bug fixes) on two files: 1 - In {theme}/nbr-product-page.tpl (line 63 and 64) modify the code to what you see in bold: {if $nValue <= $nb_products} /* not sure why the complication of having a lastnValue, worked wrong anyway */ <option value="{$nValue|escape:'html':'UTF-8'}"{if $n == $nValue}selected="selected"{/if}>{if $nValue == $nb_products}All{else}{$nValue|escape:'html':'UTF-8'}{/if}</option> 2 - Then in classes/controllers/FrontContoller.php (line 1133) remove the part in bold: if ((int)Tools::getValue('n') && (int)$total_products > 0) { /* not sure the value of adding the total number only when you you've selected a previous number?? */ Link to comment Share on other sites More sharing options...
Recommended Posts