Jump to content

Block Bestsellers show only top 3


Recommended Posts

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

  • 4 months later...

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

×
×
  • Create New...