TotalOrdersByCountry

Type
Class
Namespace
craft\commerce\stats
Inherits
craft\commerce\stats\TotalOrdersByCountry » craft\commerce\base\Stat
Implements
craft\commerce\base\StatInterface
Uses traits
craft\commerce\base\StatTrait
Since
3.0

Total Orders by Country Stat

View source

# Public Properties

Property Description
cache boolean
cacheDuration integer – How long to cache the data, in seconds.
dateRange string
limit
type string – Type of stat e.g. 'shipping' or 'billing'.
weekStartDay integer

# limit

View source

# type

Type
string

Type of stat e.g. 'shipping' or 'billing'.

View source

# Protected Properties

Property Description
_handle string

# _handle

Type
string

View source

# Public Methods

# __construct()

Stat constructor.

View source

Arguments

Throws

# getData()

View source

Returns

array, null, false

# getHandle()

View source

Returns

string

# prepareData()

View source

Arguments

  • $data

Returns

mixed

# Protected Methods

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