File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/code/Magento/SalesRule/Model/Rule/Condition Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \SalesRule \Model \Rule \Condition ;
7
8
8
9
/**
@@ -55,6 +56,13 @@ public function validate(\Magento\Framework\Model\AbstractModel $model)
55
56
return $ this ->validateAttribute ($ this ->_getAvailableInCategories ($ product ->getId ()));
56
57
}
57
58
59
+ if ($ attrCode === 'quote_item_price ' ) {
60
+ $ numericOperations = $ this ->getDefaultOperatorInputByType ()['numeric ' ];
61
+ if (in_array ($ this ->getOperator (), $ numericOperations )) {
62
+ $ this ->setData ('value ' , $ this ->_localeFormat ->getNumber ($ this ->getValue ()));
63
+ }
64
+ }
65
+
58
66
return parent ::validate ($ product );
59
67
}
60
68
You can’t perform that action at this time.
0 commit comments