Use it if you want to use an akeneo translation locale that is in different or missing from the ones used on Sylius or if you want to use the same locale for multiple targets.
In the example below, we bind for the eng
part the source locale en_GB
to target locales en_CH
and en_US
and for the fra
part we use the fr_FR
as source locale and target fr_FR
and fr_CA
locales on Sylius.
Note that if nothing is specified, we use the source as target.
# config/packages/synolia_akeneo_plugin.yaml
synolia_sylius_akeneo:
locale_mappings:
en_GB: # here you specify the source locale (akeneo side)
- en_CH # here you specify the target locale (sylius side)
- en_US
fr_FR:
- fr_FR
- fr_CA
BO > Akeneo > Product filter rules
You can configure filters to select which products will be imported.
You can also configure filters as advanced mode, with this, you can create your own query for this request /api/rest/v1/products
Product filters Akeneo documentation: https://api.akeneo.com/documentation/filter.html
BO > Akeneo > Categories
The category import configuration contains two multi-selects, the first allows you to select the categories that you want to include and the second the categories that you want to exclude from the import. In either case, selecting a parent will exclude the parent and its children.
The category import configuration contains two configurations.
root_category_codes
allows you to choose the categories that you want to include.
excluded_category_codes
allows you to choose the categories that you want to exclude from the import.
use_akeneo_positions
import category position from Akeneo, this will bypass the default sortable event.
Selecting a parent will exclude the parent and its children.
# config/packages/synolia_akeneo_plugin.yaml
synolia_sylius_akeneo:
category_configuration:
root_category_codes:
- master
excluded_category_codes:
- led_tvs
- audio_video
- mp3_players
use_akeneo_positions: true
BO > Akeneo > Products
Allows you to select the attribute that will be used to define the price of the imported product. This attribute must be of type pim_catalog_price_collection in Akeneo.
Allows you to select the attribute that will be used to obtain information on which channels the products will be activated on. This attribute must be of type pim_catalog_multiselect.
Media import is authorized by checking the Import media files box, then two new configurations will be displayed.
This is used to define which attributes we want to use to import images on our product.
This configuration is not mandatory and is used to define a special code according to the attribute of the imported image. This make it possible to differentiate a main image from a secondary one, for example. This does not concern the attributes of type Asset, because this functionality is not yet developed.
BO > Akeneo > Attributes
This configuration will generally not be used, because the Akeneo module from Synolia is able to automatically detect the correct type of the attribute if it is a standard Akeneo attribute. However, it can be used to map custom attributes that might have been done on Akeneo to an attribute type of Sylius.
This part allows you to manually map an Akeneo attribute to a Sylius attribute by indicating the attribute code on each of the solutions. Useful if the code of an attribute differs between Sylius and the PIM.
# config/packages/synolia_akeneo_plugin.yaml
synolia_sylius_akeneo:
excluded_product_attributes:
- supplier
- supplier_size
Learn more about how reference entities are imported.
Previous step: Initial configuration
Next step: Customization