Skip to main content

Overview

The storefront session facade is a provided to help keep certain resources your storefront needs set, such as channel, customer group etc.

Channels

Initialise the Channel

This will set the Channel based on what’s been previously set, otherwise it will use the default.
This is automatically called when using the facade.

Set the Channel

Get the Channel

Customer Groups

Initialise the Customer Groups

This will set the Customer Groups based on what’s been previously set (from the session), otherwise it will use the default record.
This is automatically called when using the facade.

Set the Customer Groups

Get the Customer Groups

Customer

Initialise the Customer

This will set the Customer based on what’s been previously set (from the session), otherwise it will retrieve the latest customer attached with the logged in user.
This is automatically called when using the facade.

Set the Customer

Get the Customer

Currencies

Set the Currency

Get the Currency