Skip to content

Configuration for customer data

User Groups for private and business customers

To separate business and private users in one installation, there are two User Groups in the "Shop user" group. You can configure those groups by using user_group_location.business and user_group_location.private in config/ecommerce_parameters.yml:

1
2
ibexa.commerce.site_access.config.core.default.user_group_location.business: 385
ibexa.commerce.site_access.config.core.default.user_group_location.private: 388

Default handling for VAT

You can define VAT handling rules in configuration. If isPriceInclVat is set to true, the customer always sees prices including VAT. For B2B shops, the handling can be changed. You can override the setting per customer if required. In some cases, the customer does not have to pay VAT at all (for example, for shopping abroad).

1
2
3
ibexa.commerce.customer_profile_data.isPriceInclVat: true
# if set to false, VAT is set to 0.0
ibexa.commerce.customer_profile_data.setHasToPayVat: true

Contact data

Fetching customer contact data

You can configure when customer contact data is fetched:

  • onPreEvent: contact is requested before requesting customer data
  • onPostEvent: contact is requested after requesting customer data
  • disabled: disable selecting contact before/after requesting customer data
1
ibexa.commerce.customer.config.default_values.select_contact_mode: "onPostEvent"

User edit interface configuration for backend

You can add new form fields for buyer address and delivery addresses in the Back Office. The additional fields are stored in ses_extension of the address. If the configured ses_extension field does not exist, it is created.

1
2
ibexa.commerce.site_access.config.core.default.additional_buyer_ses_extension_form_fields: ['custom_field']
ibexa.commerce.site_access.config.core.default.additional_delivery_ses_extension_form_fields: ['custom_field_2']