Log in
Model

Bestsellers

Magento\Sales\Model\ResourceModel\Report\Bestsellers

What it does

This resource model generates and manages bestsellers reports by aggregating sales order data from the sales_order and sales_order_item tables.

Developers use this class to create bestseller statistics that show which products are selling the most, with aggregation options for daily, monthly, and yearly periods.

It's primarily invoked by Magento's reporting system to populate the bestsellers report data.

Public Methods

  • aggregate()