vicef Posted April 22, 2014 Share Posted April 22, 2014 Hello, On my home page, I have configured my home page to display the top sellers block in the left column that comes with PS 1.6.0.5. However, there are 6 products shown, where I only want to display 3 or 4 best selling products. I can not simply change this number in the top sellers module. Can somebody help me out and show me in which part of the code I could change this number? Thanks, Vicef Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 open module file and change 8 to 3 or 4 in if (!($result = ProductSale::getBestSalesLight((int)$params['cookie']->id_lang, 0, 8))) remember that this module uses caching, so after changes it is necessary to clear shop cache and recompile template 1 Link to comment Share on other sites More sharing options...
vicef Posted April 23, 2014 Author Share Posted April 23, 2014 Hello Vekia, Works perfectly! Many Thanks Vicef Link to comment Share on other sites More sharing options...
vekia Posted April 23, 2014 Share Posted April 23, 2014 you're welcome im glad to hear that i could help you a little im going to mark this thread as solved. with regards, Milos Link to comment Share on other sites More sharing options...
nekvapor Posted April 28, 2014 Share Posted April 28, 2014 What is the name of the file that I need to edit? I can't seem to find that line in the code. Link to comment Share on other sites More sharing options...
vekia Posted April 28, 2014 Share Posted April 28, 2014 you have to open blocknewproducts.php file located in module directory. 1 Link to comment Share on other sites More sharing options...
yog_sothoth Posted January 7, 2015 Share Posted January 7, 2015 This fix, no longer works on module version 1.5.8 Anyone have another solution? the code line if (!($result = ProductSale::getBestSalesLight((int)$params['cookie']->id_lang, 0, 8))) no longer exists. Please help on this. thanks, 1 Link to comment Share on other sites More sharing options...
Recommended Posts