File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/SalesRule/Model/Rule/Condition/Product Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \SalesRule \Model \Rule \Condition \Product ;
7
7
8
+ /**
9
+ * Subselect conditions for product.
10
+ */
8
11
class Subselect extends \Magento \SalesRule \Model \Rule \Condition \Product \Combine
9
12
{
10
13
/**
@@ -161,7 +164,9 @@ public function validate(\Magento\Framework\Model\AbstractModel $model)
161
164
}
162
165
}
163
166
if ($ hasValidChild || parent ::validate ($ item )) {
164
- $ total += (($ hasValidChild && $ useChildrenTotal ) ? $ childrenAttrTotal : $ item ->getData ($ attr ));
167
+ $ total += ($ hasValidChild && $ useChildrenTotal )
168
+ ? $ childrenAttrTotal * $ item ->getQty ()
169
+ : $ item ->getData ($ attr );
165
170
}
166
171
}
167
172
return $ this ->validateAttribute ($ total );
You can’t perform that action at this time.
0 commit comments