Skip to content

Commit 6f74fd6

Browse files
Aasim Goriyaaasim110
authored andcommitted
Fixed: Incorrect discount amount when using fixed discount amount for whole cart
1 parent 13e54e1 commit 6f74fd6

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)