Skip to content

Latest commit

 

History

History
141 lines (84 loc) · 4.74 KB

CONFIGURE_DETAIL.md

File metadata and controls

141 lines (84 loc) · 4.74 KB

Advanced configuration

Translation locale mapping

From package configuration file

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

Product filter rules

BO > Akeneo > Product filter rules

Product Filters

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

Categories

From BO

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.

From package configuration file

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

Products

BO > Akeneo > Products

Akeneo Price Attribute Mapping

Attribute Price Attribute

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.

Akeneo Type to Sylius Type Mapping

Sylius Enabled Channels

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.

Import media images for products

Media import is authorized by checking the Import media files box, then two new configurations will be displayed.

Akeneo image attributes

This is used to define which attributes we want to use to import images on our product.

Product images mapping

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.

Product Image Importation

Attributes

BO > Akeneo > Attributes

Map attribute types manually

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.

Akeneo Type to Sylius Type Mapping

Map Akeneo attributes to Sylius attributes of a different code

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.

Exclude attributes from import

# config/packages/synolia_akeneo_plugin.yaml

synolia_sylius_akeneo:
    excluded_product_attributes:
        - supplier
        - supplier_size

Akeneo Attribute Code To Sylius Atribute Code

Learn more about how reference entities are imported.

Previous step: Initial configuration

Next step: Customization