cupcakes Posted March 23, 2014 Share Posted March 23, 2014 I tried to change this in productscategory.php $category_products = $category->getProducts($this->context->language->id, 1, 10); /* 10 products max. */ To: $category_products = $category->getProducts($this->context->language->id, 1, 4); /* 4 products max. */ But it still shows more than that. Anyone got a good solution to limit it? Link to comment Share on other sites More sharing options...
TreeTheme Dev Posted March 23, 2014 Share Posted March 23, 2014 That should work, so try to empty cache from back office or deleting files in cache\smarty\cache\productscategory. Link to comment Share on other sites More sharing options...
vekia Posted March 25, 2014 Share Posted March 25, 2014 if you don't know how to clear cache in back office, here is the video Link to comment Share on other sites More sharing options...
cupcakes Posted March 25, 2014 Author Share Posted March 25, 2014 Thanks Vekia, I've cleared it (also have it on force comp and no cache while I work on this website), but still doesn't show just 4. :/ Link to comment Share on other sites More sharing options...
cupcakes Posted April 6, 2014 Author Share Posted April 6, 2014 (edited) Maybe it's something to do with where I upload the php file? I uploaded it to the themes' directory > modules > productscategory > productscategory.php Edited April 6, 2014 by cupcakes (see edit history) Link to comment Share on other sites More sharing options...
TreeTheme Dev Posted April 6, 2014 Share Posted April 6, 2014 Yeah that is it, Prestashop do not have that feature, to override modules like that. So you have to edit original php file in root modules folder. Or to make a copy of module with your changes. But that is maybe too much as that is mall change. Link to comment Share on other sites More sharing options...
cupcakes Posted April 6, 2014 Author Share Posted April 6, 2014 Oh okay. Woopsie. Thank you! Link to comment Share on other sites More sharing options...
Absurdia Posted April 13, 2017 Share Posted April 13, 2017 Is there a solution for 1.7? Link to comment Share on other sites More sharing options...
nadie Posted April 13, 2017 Share Posted April 13, 2017 Is there a solution for 1.7? In Prestashop 1.7 (function is native in the module): ¿No Working configuration module? Attached image Sorry for my English, Link to comment Share on other sites More sharing options...
Absurdia Posted April 13, 2017 Share Posted April 13, 2017 (edited) Yes it's is working. But I have other problem 15 articles showing on first page of category, not 16... Look: http://imgur.com/a/hSTPj I would like 16 products on the page. Edited April 13, 2017 by Absurdia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 13, 2017 Share Posted April 13, 2017 so you configured it to display 16 products ? Link to comment Share on other sites More sharing options...
Absurdia Posted April 16, 2017 Share Posted April 16, 2017 Hey vekia, busy days with the Pentecost holiday, so please here the link of my site: http://atconceptstore.com/fr/2-accueil Like you can see, only 15 products show on that page and all the others like: http://atconceptstore.com/fr/3-femmes I have more than 15 prodicts listed in the given cathegory, but only 15 show and it is ugly, i want 16 to be shown. In backoffice I put 16 in the module that defines the hompage part, but I guess it is not interdependent... http://imgur.com/V4ilxwt Link to comment Share on other sites More sharing options...
Vilius PromoApranga Posted April 16, 2017 Share Posted April 16, 2017 (edited) Hey vekia, busy days with the Pentecost holiday, so please here the link of my site: http://atconceptstore.com/fr/2-accueil Like you can see, only 15 products show on that page and all the others like: http://atconceptstore.com/fr/3-femmes I have more than 15 prodicts listed in the given cathegory, but only 15 show and it is ugly, i want 16 to be shown. In backoffice I put 16 in the module that defines the hompage part, but I guess it is not interdependent... http://imgur.com/V4ilxwt Go to Shop parameters > Product settings. You where editing your modules of front page.. Edited April 16, 2017 by Vilius PromoApranga (see edit history) 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