We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 210d825 commit a42efeeCopy full SHA for a42efee
app/code/Magento/SalesRule/Model/Quote/Discount.php
@@ -222,9 +222,11 @@ public function collect(
222
}
223
224
if ($item->getChildren() && $item->isChildrenCalculated()) {
225
+ $childTotal = 0;
226
foreach ($item->getChildren() as $child) {
- $totalDiscount[$item->getId()] += $child->getBaseDiscountAmount();
227
+ $childTotal += $child->getBaseDiscountAmount();
228
229
+ $totalDiscount[$item->getId()] = $childTotal;
230
} else {
231
$totalDiscount[$item->getId()] = $item->getBaseDiscountAmount();
232
0 commit comments