Configurable Products

Extension Dependencies

Learn about the extension dependencies for configurable products.

This UML diagram gives a general overview of the most important extension dependencies.

Configurable Category Examples

Depending on the product variant configuration, the variant category can inherit, override, or combine the configuration from a base product category.

Option 1 - Variant's Category Inherits Configuration and Overrides Some Settings

The parent category is also assigned to the base product, so by default the product variants have the base product's configuration set.

Option 2 - Plain Category Structure

A variant combines the base product's configurations with its own set. This set has a priority in case of conflicts. If conflicts occur when the base product and variant both have a category of the same type, the variant's version completely overrides the base version.

Option 3 - Base Product Does Not Have Configurations

Base product has no configurations and configurations are defined for variants directly. In the example, configurations for the Engraving category are merged with variant-specific configurations.

Service Layer

Items

Services

The following changes are introduced to classes and interfaces:
  • CommerceCartService: adds an extra method <updateCartEntry> that can change a single AbstractConfiguredProductInfo in a given cart entry.
  • DefaultCommerceAddToCartStrategy: adds to the new entry instances of AbstractConfiguredProductInfo according to the list of AbstractConfiguratorSettings provided in a product.
  • New interface - ProductConfigurationHandler: incapsulates configurator-type-specific logic on the service level. ProductConfigurationHandlerFactory dispatches calls to the correct implementation of ProductConfigurationHandler.

Intermediate DTOs