Log in

Swatches Module

AttributesList

Model

This class retrieves and formats product attribute information for configurable products, specifically focusing on swatch attributes. Developers use i...

ConvertSwatchAttributeFrontendInput

Model

This class converts frontend input type identifiers for swatch attributes into their internal representation. Developers use this when processing attr...

Form\Element\AbstractSwatch

Model

This is an abstract base class for swatch form elements in Magento 2's admin interface. Developers extend this class when creating custom swatch input...

Form\Element\SwatchText

Model

This class represents a text-based swatch form element in Magento's product attribute configuration. Developers would use this when creating or managi...

Form\Element\SwatchVisual

Model

This class represents a form element for visual swatches (color or image-based product options) in the Magento admin interface. Developers use this wh...

ResourceModel\Swatch

Model

This resource model manages database operations for product swatch options in Magento 2. Developers use this class to save default swatch values for a...

Swatch

Model

This model represents a swatch option in Magento 2's product attribute system. Developers use this class when working with color, texture, or visual p...

SwatchAttributeCodes

Model

This class retrieves and caches a mapping of attribute IDs to attribute codes for all EAV attributes that have swatch options configured. Developers w...

SwatchAttributeType

Model

This model provides utility methods to determine if a product attribute is a swatch type (text or visual). Developers use this class when they need to...

SwatchAttributesProvider

Model

This class retrieves all swatch-type attributes (visual or text swatches) configured for a Magento 2 configurable product. Developers use this when th...