Jump to content

How to change top-sellers.php


Recommended Posts

How to change top-sellers.php so it shows top-sellers orderes by amount and not alfabetic.

And how do i edit it so only shows 16 products?

______________________________________________________________________________________


Question 1: How can i increase the shown products in Top Seller module from 5 to 10 or 15 ?
Answered in second post.

Link to comment
Share on other sites

Backup then go to modules/blockbestsellers/blockbestsellers.php, find:

       $bestsellers = ProductSale::getBestSalesLight(intval($params['cookie']->id_lang), 0, 5);


replace with:

       $bestsellers = ProductSale::getBestSalesLight(intval($params['cookie']->id_lang), 0, 10);



The altered number indicates how many products involve.

Link to comment
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...