How to get the simple variants for a configurable product?

API

https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php#L420-L427

https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php#L402-L418


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php#L470-L492

Usage

https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Block/Adminhtml/Product/Edit/Tab/Variations/Config.php#L137-L144


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Block/Adminhtml/Product/Edit/Tab/Variations/Config/Matrix.php#L191-L314


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Block/Plugin/Product/Media/Gallery.php#L65-L82


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Block/Product/View/Type/Configurable.php#L129-L143


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Block/Stockqty/Type/Configurable.php#L15-L23


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/LinkManagement.php#L68-L88


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/LinkManagement.php#L116-L136


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php#L591-L610


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php#L635-L655


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php#L1039-L1056


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Type/Configurable/Attribute/Collection.php#L239-L271


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurablePriceResolver.php#L39-L57


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurableRegularPrice.php#L92-L107


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurableRegularPrice.php#L120-L135


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurableRegularPrice.php#L137-L145


https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/Swatches/Helper/Data.php#L163-L191

1 Like

See also: