Log in
Model

VariationMatrix

Magento\ConfigurableProduct\Model\Product\Type\VariationMatrix

What it does

This class generates all possible combinations (variations) of configurable product attributes and their values.

Developers use it when creating configurable products to calculate the complete matrix of product variations based on selected attributes like size, color, etc.

It's primarily used during configurable product creation to determine all possible child product combinations.

Public Methods

  • getVariations()