1
vote
Accepted
How can I validate the custom rule condition on custom module in Magento 2
To validate the custom rule condition at order place time, you can use the Magento\SalesRule\Model\RuleFactory class to load the rule and validate it against the quote or order.
- 341
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
orders × 2233magento2 × 750
magento-1.9 × 474
sales-order × 214
order-status × 124
admin × 119
customer × 113
checkout × 112
event-observer × 106
invoice × 106
magento-1.7 × 105
email × 96
magento-1.8 × 90
database × 87
product × 85
magento-2.1 × 80
rest-api × 77
quote × 73
api × 71
payment × 63
magento2.3 × 62
sales × 58
shipping × 54
payment-methods × 53
php × 51