Model
Address
Magento\SalesRule\Model\Rule\Condition\Address
What it does
This class defines address-based conditions for shopping cart price rules in Magento 2.
Developers use it to create rules that trigger based on shipping/billing address attributes like country, region, postcode, shipping method, payment method, subtotal amounts, or cart weight.
It validates whether a quote's address data meets the specified condition criteria.
Public Methods
- loadAttributeOptions()
- getAttributeElement()
- getInputType()
- getValueElementType()
- getValueSelectOptions()
- validate()