zanahoria Posted May 22, 2012 Share Posted May 22, 2012 Hello Everyone In the product page, i would like to limit the number of products display in the "Products in the same category" to three . What should I do? Link to comment Share on other sites More sharing options...
xejay Posted September 5, 2012 Share Posted September 5, 2012 Please help i need it too... Link to comment Share on other sites More sharing options...
rotame Posted February 23, 2013 Share Posted February 23, 2013 Go Products gategory Module -, open productscategory.php around 122 line $categoryProducts = $category->getProducts((int)$cookie->id_lang, 1, 100); /* 100 products max. */ default 100 set to 10 example $categoryProducts = $category->getProducts((int)$cookie->id_lang, 1, 10); /* 10 products max. */ Link to comment Share on other sites More sharing options...
PeggyPollice Posted October 22, 2014 Share Posted October 22, 2014 I know this is an old post, but the above answer does not solve the problem. I am having the same problem, except I want to increase the number of items shown on the page to 5 not 4. I have searched everywhere and cannot find the answer. Other modules have this choice in the configure section, but this one doesn't. Thanks :-) Peggy Link to comment Share on other sites More sharing options...
Publiselect Posted November 29, 2014 Share Posted November 29, 2014 I know this is an old post, but the above answer does not solve the problem. I am having the same problem, except I want to increase the number of items shown on the page to 5 not 4. I have searched everywhere and cannot find the answer. Other modules have this choice in the configure section, but this one doesn't. Thanks :-) Peggy hello peggy did you resolve that? regards Link to comment Share on other sites More sharing options...
pskeeda Posted March 2, 2015 Share Posted March 2, 2015 searching for the solution for PS 1.6.0.11 Link to comment Share on other sites More sharing options...
p.guerin Posted May 27, 2015 Share Posted May 27, 2015 somebody have the answer...? also searching for the solution but could not find it so far for 1.6 Link to comment Share on other sites More sharing options...
Ben90 Posted June 10, 2015 Share Posted June 10, 2015 I am looking for the answer for this solution as well. How come prestashop doesn't give any options to set the number of products showing there.... Link to comment Share on other sites More sharing options...
p.guerin Posted June 11, 2015 Share Posted June 11, 2015 I do not know! this is a mystery for 1.6.X ! please someone?? still searching for a solution... Link to comment Share on other sites More sharing options...
Chris Mok Posted June 11, 2015 Share Posted June 11, 2015 Hi All, in the Modules menu, search "Product in same category" by default this module is not installed, so you need to install it and see the product page. Link to comment Share on other sites More sharing options...
Ben90 Posted June 12, 2015 Share Posted June 12, 2015 (edited) Hi All, 2015-06-11 17_39_33-Modules • PS 1.6.0.14.png in the Modules menu, search "Product in same category" by default this module is not installed, so you need to install it and see the product page. Hi Chris, I reckon all of us know about that. What we are looking for here in this thread is "how we can set how many -products in the same category- shown" on product page Edited June 12, 2015 by Ben90 (see edit history) Link to comment Share on other sites More sharing options...
Chris Mok Posted June 12, 2015 Share Posted June 12, 2015 (edited) Go Products gategory Module -, open productscategory.php around 122 line $categoryProducts = $category->getProducts((int)$cookie->id_lang, 1, 100); /* 100 products max. */ default 100 set to 10 example $categoryProducts = $category->getProducts((int)$cookie->id_lang, 1, 10); /* 10 products max. */ Hi Ben90, have you tried this? the line number is depends on what version you use so search "products max" in that file. Edited June 12, 2015 by Chris Mok (see edit history) Link to comment Share on other sites More sharing options...
p.guerin Posted June 12, 2015 Share Posted June 12, 2015 (edited) Hi everyone Chris: Already tried that, and just tried again did not work... it seems that for 1.6 there is something different to do ! Edited June 12, 2015 by p.guerin (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2015 Share Posted June 14, 2015 have you cleared shop cache after changes? module uses cached files to display product list so it can be related to your problem. Link to comment Share on other sites More sharing options...
p.guerin Posted June 14, 2015 Share Posted June 14, 2015 Cannot believe it was the solution...! I know this is the solution sometimes but havent thought of doing it since the beginning, thanks ! it works now. Products does not appear randomly that is a pity (do you have a tips for that?) but thanks anyway ! Regards Pierre Link to comment Share on other sites More sharing options...
jaimeweb Posted August 27, 2015 Share Posted August 27, 2015 is there a way to get the products to appear randomly when limiting them to 10 for example? Rather than show the same 10 everytime? Link to comment Share on other sites More sharing options...
Derres Posted May 11, 2016 Share Posted May 11, 2016 (edited) After moving some products order in BO, i have get a strange bug that limit the number product showing in the same category to 30 product max, and it skip the first 2 products that need to be showed. Plus in manufacturer and supplier page now the products are not in category order but they stay only in alphabetic order. How i can solve that bug ? Where i need look if maybe something is become broken ? If maybe somethign have take a double id and is that conflict that cause the problem ? Thanks Edited May 11, 2016 by Derres (see edit history) Link to comment Share on other sites More sharing options...
Zeryk Posted October 8, 2016 Share Posted October 8, 2016 I have an opposite problem. It says 13 product in same category , but shows only one. How do I increase number of product to be shown at the bottom ? Link to comment Share on other sites More sharing options...
Recommended Posts