Model
Configurable
Magento\ConfigurableProduct\Model\Product\Type\Configurable
What it does
This class implements the Configurable Product type in Magento 2, handling products that have multiple variations based on attributes like size or color.
Developers use this when working with configurable products to manage relationships between parent products and their simple product variants, retrieve product options, check salability, and handle cart operations for products with configurable attributes.
Public Methods
- getRelationInfo()
- getChildrenIds()
- getParentIdsByChild()
- canUseAttribute()
- setUsedProductAttributeIds()
- setUsedProductAttributes()
- getUsedProductAttributeIds()
- getUsedProductAttributes()
- getConfigurableAttributes()
- resetConfigurableAttributes()
- getConfigurableAttributesAsArray()
- getConfigurableAttributeCollection()
- getUsedProductIds()
- getUsedProductCollection()
- beforeSave()
- save()
- isSalable()
- getIsSalable()
- getProductByAttributes()
- getSelectedAttributesInfo()
- checkProductBuyState()
- getSpecifyOptionMessage()
- getOrderOptions()
- isVirtual()
- hasOptions()
- getWeight()
- assignProductToOption()
- getProductsToPurchaseByReqGroups()
- getSku()
- processBuyRequest()
- getConfigurableOptions()
- deleteTypeSpecificData()
- getAttributeById()
- setImageFromChildProduct()
- isPossibleBuyFromList()
- getUsedProducts()
- getSalableUsedProducts()
- _resetState()