CVpeet Posted November 2, 2012 Share Posted November 2, 2012 Hello fellow prestashop 1.5 users, I would like to only show the top 3 best seller products in the Block bestsellers items, but i'm having a hard time finding the right string in the .tpl files. Could any of you help me out on this one? I'd really would like only top three because top 5 is a bit messing up my layout at the bottom right . Many thanks in advance! Greetings, CVpeet Link to comment Share on other sites More sharing options...
indus Posted November 2, 2012 Share Posted November 2, 2012 Use have to edit the blockbestsellers.php file,edit line 99 and change last number from 5 to 3. $bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 15, 5); Link to comment Share on other sites More sharing options...
CVpeet Posted November 2, 2012 Author Share Posted November 2, 2012 It worked perfecty! Thanks a lot for the quick response! Greetings Link to comment Share on other sites More sharing options...
JesseNaylor Posted March 4, 2013 Share Posted March 4, 2013 Please, I have a question regarding this. I am running Prestashop 1.4.8.3. I only want to display the two best selling items, so I have set that line of code to: $bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 0, 2); But I always have the same two products displaying (the first two sales) and I would like it to display the other best selling items (either the two most sold, or if not, randomly display two of the bestselling items). Please help me! Link to comment Share on other sites More sharing options...
Recommended Posts