0

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

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

You can also see on line 138

Magento\Sales\Model\ResourceModel\Report\Bestsellers.php

'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, privacy policy and cookie policy

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