Channels
In the modern world of e-commerce, your website is no longer the only point of sale for your goods.
The Channel model represents a single sales channel, which can be one of the following things:
Webstore
Mobile application
Cashier in your physical store
Or pretty much any other channel type you can imagine.
What may differ between channels? Particularly anything from your shop configuration:
products,
currencies,
locales (language),
countries,
themes,
hostnames,
taxes,
payment and shipping methods,
menu.
A Channel has a code
, a name
and a color
.
To make the system more convenient for the administrator, there is just one, shared admin panel. Users are also shared among the channels.
Different menu root
By default, Sylius will render the same menu for all channels defined in the store, which will be all the children of the taxon with the code category. You can customize this behavior by specifying a menu taxon in the “Look & feel” section of the desired channel.
With this configuration, this particular channel will expose a menu starting from the children of the chosen taxon (T-Shirt taxon in this example):
The rest of the channels will still render only children of category taxon.
How to get the current channel?
You can get the current channel from the channel context.
Beware! When using multiple channels, remember to configure hostname
for each of them. If missing, the default context will not be able to provide an appropriate channel, resulting in an error.
Shop Billing Data
Business Units
Sylius Plus is supplied with an enhanced version of Shop Billing Data from Sylius CE. It is also used for Invoicing and Refunds purposes. Still, it is a separate entity, that you can create outside of the Channel and then pick a previously created Business Unit on the Channel form.
Last updated
Was this helpful?