Skip to content

Commit f906144

Browse files
Merge remote-tracking branch '37560/cartrule-fix' into comm_jul
2 parents 800649d + 0d6b22e commit f906144

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/SalesRule/Model/Validator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ public function initTotals($items, Address $address)
478478
$validItemsCount = 0;
479479

480480
foreach ($items as $item) {
481+
if ($item->getHasChildren()) {
482+
continue;
483+
}
481484
if (!$this->isValidItemForRule($item, $rule)
482485
|| ($item->getChildren() && $item->isChildrenCalculated())
483486
|| $item->getNoDiscount()

0 commit comments

Comments
 (0)