Jump to content

Limiting the number of items in Top Sellers module for 1.5.2

Recommended Posts

Anyone know how to limit the number of items shown in the Top Sellers module. I want to get it down to maybe two or three.

I use this module in the right column along with New Products and Specials and I have to keep these both at one item so the column isn't really long. I'd like to increase these by a few a decrease the Top Sellers. The other modules like this seem to have a limit adjustment in the BO. Why doesn't this one?

Share this post

Link to post
Share on other sites

try this,


in modules/blockbestsellers


find the following code and change the 5 to whatever number you want to dispaly


public function hookRightColumn($params)
 if (Configuration::get('PS_CATALOG_MODE'))
 $currency = new Currency($params['cookie']->id_currency);
 $bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 0, 5);

Share this post

Link to post
Share on other sites

Thanks. I actually just figured it out right before you posted that. That's exactly what I did.

Now to try and get the Specials block to show more than one item.

Also, any idea why the New Products block would have a different format/layout than all the other blocks like this? Seems to have 2 pictures on top and then descriptions listed below.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More