StatWidgetTrait ​
- Type
- Trait
- Namespace
- craft\commerce\base
- Uses traits
- craft\commerce\base\StoreTrait
- Implemented by
- craft\commerce\widgets\AverageOrderTotal, craft\commerce\widgets\NewCustomers, craft\commerce\widgets\Orders, 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
Public Properties ​
Property | Description |
---|---|
dateRange | string, null |
endDate | integer, craft\gql\types\DateTime, null |
orderStatuses | array, null |
startDate | integer, craft\gql\types\DateTime, null |
dateRange
​
endDate
​
- Type
- integer, craft\gql\types\DateTime, null
- Default value
null
orderStatuses
​
startDate
​
- Type
- integer, craft\gql\types\DateTime, null
- Default value
null
Public Methods ​
Method | Description |
---|---|
getOrderStatusOptions() |