StatWidgetTrait

Type
Trait
Namespace
craft\commerce\base
Implemented by
craft\commerce\widgets\AverageOrderTotal, craft\commerce\widgets\NewCustomers, craft\commerce\widgets\RepeatCustomers, craft\commerce\widgets\TopCustomers, craft\commerce\widgets\TopProductTypes, craft\commerce\widgets\TopProducts, craft\commerce\widgets\TopPurchasables, craft\commerce\widgets\TotalOrders, craft\commerce\widgets\TotalOrdersByCountry, craft\commerce\widgets\TotalRevenue
Since
4.2.0

Stat Widget Trait

View source (opens new window)

# Public Properties

# dateRange

Type
string (opens new window), null (opens new window)
Default value
null

View source (opens new window)

# endDate

Type
integer (opens new window), craft\gql\types\DateTime (opens new window), null (opens new window)
Default value
null

View source (opens new window)

# orderStatuses

Type
array (opens new window), null (opens new window)
Default value
null

View source (opens new window)

# startDate

Type
integer (opens new window), craft\gql\types\DateTime (opens new window), null (opens new window)
Default value
null

View source (opens new window)

# Public Methods

Method Description
getOrderStatusOptions()

# getOrderStatusOptions()

View source (opens new window)

Returns

array (opens new window)