Jump to content

Best Sellers And Popular Products Logic


Recommended Posts

  • 3 weeks later...

In the ProductSale class there is a static method: getBestSales().

This will return a list of the most popular products.

 

/*
** Get required informations on best sales products
**
** @param int $id_lang Language id
** @param int $page_number Start from (optional)
** @param int $nb_products Number of products to return (optional)
** @return array from Product::getProductProperties
*/
public static function getBestSales($id_lang, $page_number = 0, $nb_products = 10, $order_by = null, $order_way = null)

Edited by Toteldo (see edit history)
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...