Skip to content

Commit 35c69e7

Browse files
committed
ACP2E-3403: Cart Price Rules Miscalculating Discount
1 parent f8ff3fa commit 35c69e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/SalesRule/Model/Quote/Discount.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,9 @@ public function collect(
238238
$this->eventManager->dispatch('sales_quote_address_discount_item', $eventArgs);
239239
$this->aggregateItemDiscount($child, $total);
240240
}
241+
} else {
242+
$this->aggregateItemDiscount($item, $total);
241243
}
242-
$this->aggregateItemDiscount($item, $total);
243244
if ($item->getExtensionAttributes()) {
244245
$this->aggregateDiscountPerRule($item, $address);
245246
}

0 commit comments

Comments
 (0)