Skip to content

StoreTrait ​

Type
Trait
Namespace
craft\commerce\base
Implemented by
craft\commerce\base\ShippingMethod, craft\commerce\base\Stat, craft\commerce\base\Zone, craft\commerce\elements\Order, craft\commerce\elements\Product, craft\commerce\elements\conditions\orders\DiscountOrderCondition, craft\commerce\elements\conditions\orders\ShippingMethodOrderCondition, craft\commerce\elements\conditions\orders\ShippingRuleOrderCondition, craft\commerce\models\CatalogPricing, craft\commerce\models\CatalogPricingRule, craft\commerce\models\Discount, craft\commerce\models\Email, craft\commerce\models\LineItemStatus, craft\commerce\models\OrderStatus, craft\commerce\models\Pdf, craft\commerce\models\ShippingAddressZone, craft\commerce\models\ShippingCategory, craft\commerce\models\ShippingMethod, craft\commerce\models\ShippingMethodOption, craft\commerce\models\ShippingRule, craft\commerce\models\SiteStore, craft\commerce\models\TaxAddressZone, craft\commerce\models\TaxRate, 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
5.0.0

Store Trait

View source

Public Properties ​

PropertyDescription
storeIdinteger, null – Store ID

storeId ​

Type
integer, null
Default value
null

Store ID

View source

Public Methods ​

MethodDescription
getStore()

getStore() ​

View source

Returns ​

craft\commerce\models\Store

Throws ​