Product
Magento\CatalogWidget\Model\Rule\Condition\Product
What it does
This class defines product condition rules for Magento 2 catalog widgets, enabling developers to filter and display products based on attributes like SKU, price, category, or custom attributes.
It's used when creating widgets like product lists or sliders where you need to specify which products should be shown based on conditional logic.
The class handles joining product attributes to collections and building SQL conditions for both global and store-specific attribute scopes.
Public Methods
- loadAttributeOptions()
- addToCollection()
- getMappedSqlField()
- collectValidatedAttributes()
- getBindArgumentValue()
- _resetState()