Configure Storefront¶
The Storefront is accessible under the <yourdomain>/product-catalog
.
Catalog configuration¶
With the ibexa/storefront
package, you can configure the product catalog and make it available to your shop users.
Before you start configuring the Storefront, make sure you have created, configured and published catalogs in the Back Office.
The configuration is available under the ibexa.system.<scope>.storefront.catalog
configuration key.
It accepts the following values:
1. All products available for all users:
1 2 3 4 5 |
|
If null
is provided as the value, the Storefront makes the main product catalog (with all products) visible for all users.
2. To expose a single catalog with an identifier to all users, provide a string value of the catalog identifier:
1 2 3 4 5 |
|
3. Specific catalog for the defined customer group
You can expose different catalogs based on a customer group assigned to the current user.
To do it, provide the following configuration:
1 2 3 4 5 6 7 8 9 |
|
The basic configuration of the Storefront can look as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
Retrieve catalog assigned to user¶
The \Ibexa\Contracts\Storefront\Repository\CatalogResolverInterface
interface allows retrieving the product catalog available for a specific user.
1 2 3 4 5 6 7 8 9 |
|
null
stands for the current user.
Configure user account¶
The following user settings mechanisms used in ibexa/storefront
are reused from ibexa/user
package:
- change password feature
- user avatar
Settings for a Storefront user are configured under the ibexa.system.<scope>.storefront.user_settings_groups
configuration key:
1 2 3 4 5 6 |
|
By default, only the location
user settings is provided:
- Currency (from
ibexa/storefront
) - Time zone
- Short date and time format
- Long date and time format
- Language