Log in
Collection

Customer\Collection

Magento\Reports\Model\ResourceModel\Customer\Collection

What it does

This collection class is used to retrieve and manage customer data for reporting purposes in Magento 2.

Developers use it when generating customer reports that need additional statistics like order totals, cart information, and customer names.

It extends the standard customer collection with specialized methods for aggregating sales data and cart information for reporting dashboards.

Public Methods

  • addCartInfo()
  • addCustomerName()
  • addOrdersStatistics()
  • orderByCustomerRegistration()
  • getSelectCountSql()