StorefrontSessionInterface
interface StorefrontSessionInterface (View source)
Methods
string
getSessionKey()
Return the session key for carts.
setCustomerGroups(Collection $customerGroups)
Set the store front session customer group
getCurrency()
Return the current currency.
getChannel()
Return the current channel.
Collection|null
getCustomerGroups()
Return the current customer groups
Customer|null
getCustomer()
Return the current customer.
Details
string
getSessionKey()
Return the session key for carts.
StorefrontSessionInterface
setChannel(Channel $channel)
Set the cart session channel.
StorefrontSessionInterface
setCurrency(Currency $currency)
Set the cart session currency.
StorefrontSessionInterface
setCustomerGroups(Collection $customerGroups)
Set the store front session customer group
StorefrontSessionInterface
setCustomerGroup(CustomerGroup $customerGroup)
Set the Customer Group
Currency
getCurrency()
Return the current currency.
Channel
getChannel()
Return the current channel.
Collection|null
getCustomerGroups()
Return the current customer groups
StorefrontSessionInterface
setCustomer(Customer $customer)
Set the session customer.
Customer|null
getCustomer()
Return the current customer.