bside2234 Posted December 12, 2012 Share Posted December 12, 2012 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? Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 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')) return; $currency = new Currency($params['cookie']->id_currency); $bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 0, 5); Link to comment Share on other sites More sharing options...
bside2234 Posted December 13, 2012 Author Share Posted December 13, 2012 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. Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2012 Share Posted December 13, 2012 not a clue...the like button tends to jog my memory... 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now