Model
AbstractProduct
Magento\Rule\Model\Condition\Product\AbstractProduct
What it does
This abstract class serves as the foundation for product-related conditions in Magento 2 promotional rules (cart price rules, catalog price rules).
Developers extend this class when creating custom product attribute conditions for rule-based promotions, allowing them to evaluate product attributes, categories, and attribute sets against specified criteria to determine if products qualify for discounts or other promotional actions.
Public Methods
- getDefaultOperatorInputByType()
- getAttributeObject()
- loadAttributeOptions()
- getValueOption()
- getValueSelectOptions()
- getValueAfterElementHtml()
- getAttributeElement()
- collectValidatedAttributes()
- getInputType()
- getValueElementType()
- getValueElementChooserUrl()
- getExplicitApply()
- loadArray()
- validate()
- getBindArgumentValue()
- getMappedSqlField()
- validateByEntityId()
- getOperatorForValidate()