Configuration
Channels and collections
Every channel uses one collection of the bundle. Channels without entry use the collection default, so a shop with one channel needs no configuration at all.
# config/packages/batteryincluded.yaml
batteryincluded:
# default collection, from BATTERYINCLUDED_COLLECTION and BATTERYINCLUDED_API_KEY
collections:
ch:
collection: '%env(BATTERYINCLUDED_COLLECTION_CH)%'
api_key: '%env(BATTERYINCLUDED_API_KEY_CH)%'
eiling_io_sylius_battery_included:
channels: # channel code => collection
FASHION_WEB: default
FASHION_CH: ch
| Where | What happens |
|---|---|
| Shop | Search, suggestions, category pages and recommendations use the collection of the current channel |
| Export | bi:export -c ch exports the products of FASHION_CH, bi:export those of FASHION_WEB |
Rules:
- A collection can only be assigned to one channel, the configuration is rejected otherwise.
- Without
channelsthe products of the first enabled channel are exported intodefault. - Collection names match
[a-z][a-z0-9_]*, see several collections.
Bundle options
Everything else is configured in the bundle: base url, Symfony http client with timeouts and retries, cache of rarely changing responses, logging and the batch size of the export.
bin/console config:dump-reference batteryincluded
The configuration reference of the bundle describes every option.
Plugin options
bin/console config:dump-reference eiling_io_sylius_battery_included
| Option | Default | Meaning |
|---|---|---|
channels | {} | Channel code => collection name of the bundle |