khubbaib Posted February 8, 2016 Share Posted February 8, 2016 Hello, I want to show popular,best sellers products via API but i dont know the logic how i can get these i mean in which database table... You help can solve my issue.. Thanks in advance.. Link to comment Share on other sites More sharing options...
khubbaib Posted February 23, 2016 Author Share Posted February 23, 2016 Is there any one for help? Link to comment Share on other sites More sharing options...
Toteldo Posted February 24, 2016 Share Posted February 24, 2016 (edited) 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 February 24, 2016 by Toteldo (see edit history) 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