How does Magento 2 pick up the best seller products? What is the logic behind that? (I have the code , but want to know the logic)

1 Answer 1


Simple logic behind that number of product quantity order most is bestseller product.

You can also see on line 138


'qty_ordered' => new \Zend_Db_Expr('SUM(order_item.qty_ordered)')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.