Jump to content

[SOLVED] Number of top sellers products displayed in left column


vicef

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

  • 8 months later...
×
×
  • Create New...