Master, variation group and variant product configuration
Key Takeaway
A variation with no value of its own for an attribute takes the value from the first of its variation groups, in "Variations" tab sort order, that defines one. Only if no group defines it does the base product's value apply.
In B2C Commerce, a product that comes in several versions, such as different colors and sizes, is built from a base product and its variations. Variation attributes, such as color and size, define how the variations differ. A variation group collects a subset of those variations, for example all the green ones, so you can merchandise and display them as one unit. Each of these product types has its own rules for categories, inventory, pricing and attribute values.
Base products, variations and variation groups
Business Manager and the Script API use different names for these product types.
| Business Manager | What it is | Script API |
|---|---|---|
| Base product | Represents all the variations of a product, such as every size and color of a boot | Master product |
| Variation | One specific instance of a base product | Variant |
| Variation group | A set of variations that share at least one attribute value, such as color, and that is assigned to a base product | Variation group |
In the Script API, a master product is a template for related products that differ only by variation attributes, such as size or color. A master product is not orderable itself. Variants are the actual orderable products. Each variant of a master has a unique set of variation attribute values.
In the Script API, Variant and VariationGroup are both subclasses of dw.catalog.Product.