RepeatCustomers

Type
Class
Namespace
craft\commerce\stats
Inherits
craft\commerce\stats\RepeatCustomers ยป craft\commerce\base\Stat
Implements
craft\commerce\base\StatInterface
Uses traits
craft\commerce\base\StatTrait
Since
3.0

Repeat Customers Stat

View source (opens new window)

# Public Properties

# Protected Properties

Property Description
_handle string (opens new window)

# _handle

Type
string (opens new window)
Default value
'repeatingCustomers'

View source (opens new window)

# Public Methods

Method Description
__construct() Stat constructor.
get()
getChartQueryOptionsByInterval()
getData()
getDateRangeInterval()
getDateRangeWording()
getEndDate()
getHandle()
getOrderStatuses()
getStartDate()
prepareData()
setEndDate()
setOrderStatuses() Set order statuses to limit stat query. Accepts array of OrderStatus models, handle strings or uid strings.
setStartDate()

# getData()

View source (opens new window)

Returns

mixed

# Protected Methods

Method Description
_createChartQuery()
_createStatQuery() Generate base stat query