StatTrait ​
- Type
- Trait
- Namespace
- craft\commerce\base
- Implemented by
- craft\commerce\base\Stat, craft\commerce\stats\AverageOrderTotal, craft\commerce\stats\NewCustomers, craft\commerce\stats\RepeatCustomers, craft\commerce\stats\TopCustomers, craft\commerce\stats\TopProductTypes, craft\commerce\stats\TopProducts, craft\commerce\stats\TopPurchasables, craft\commerce\stats\TotalOrders, craft\commerce\stats\TotalOrdersByCountry, craft\commerce\stats\TotalRevenue
- Since
- 3.0
Stat Trait
Public Properties ​
Property | Description |
---|---|
cache | boolean |
cacheDuration | integer – How long to cache the data, in seconds. |
dateRange | string, null |
weekStartDay | integer |
cache
​
- Type
- boolean
- Default value
false
cacheDuration
​
- Type
- integer
- Default value
0
How long to cache the data, in seconds.
dateRange
​
weekStartDay
​
- Type
- integer
- Default value
1
Protected Properties ​
Property | Description |
---|---|
_handle | string |
_handle
​
- Type
- string
- Default value
null