Skip to content

PIM configuration

You can configure PIM per Repository.

Under ibexa.repositories.<repository_name>.product_catalog, indicate the catalog engine to use:

1
2
3
4
5
6
7
8
9
ibexa:
    repositories:
        default:
            storage: ~
            search:
                engine: '%search_engine%'
                connection: default
            product_catalog:
                engine: 'default'

The default engine is available out of the box, and configured under ibexa_product_catalog:

1
2
3
4
5
6
7
ibexa_product_catalog:
    engines:
        default:
            type: local
            options:
                root_location_remote_id: e5ce2e391bd94e26a5cd88746f24ecce
                product_type_group_identifier: 'product'

The local type is the built-in type of catalog based on the Repository.

Under options.product_type_group_identifier you can define the identifier of the Content Type group used for storing products.

root_location_remote_id indicates the remote ID of the Location where products are stored.

VAT rates

To set up different VAT rates for different regions (countries), you can use the following configuration under ibexa.repositories.<scope>.product_catalog.regions:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ibexa:
    repositories:
        <scope>:
            product_catalog:
                engine: default
                regions:
                    region_1:
                        vat_categories:
                            standard: 18
                            reduced: 6
                            none: ~

Code generation strategy

Product codes for variants are generated automatically based on the selected strategy.

The following strategies are available:

  • incremental (default) - variant code consists of base product code plus index, for example: ErgoDesk-1, ErgoDesk-2.
  • random - variant code consists of base product code plus random string of characters, for example: ErgoDesk-62E7B3379AEB4, ErgoDesk-62E7B3379AFBC

You can choose the strategy with the following configuration:

1
2
3
4
5
6
7
8
ibexa_product_catalog:
    engines:
        default:
            type: local
            options:
                root_location_remote_id: ibexa_product_catalog_root
                product_type_group_identifier: 'product'
                variant_code_generator_strategy: 'random'

You can also create your own custom code generation strategy.

Catalogs

Catalog filters

You can configure which catalog filters are applied by default with the following configuration:

1
2
3
4
5
6
7
8
ibexa:
    system:
        admin:
            product_catalog:
                catalogs:
                    default_filters:
                        - product_code
                        - product_availability