Skip to content

Commit eaa68b1

Browse files
committed
ACPT-1408: Investigate 1m call on 1k rules
1 parent 0205923 commit eaa68b1

File tree

4 files changed

+416
-414
lines changed

4 files changed

+416
-414
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public function collect(
196196
unset($itemsToApplyRules[$key]);
197197
}
198198
}
199+
// $this->calculator->initTotals($items, $address);
199200
}
200201
$this->calculator->initTotals($items, $address);
201202
foreach ($items as $item) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ public function initTotals($items, Address $address)
472472
$ruleTotalBaseItemsDiscountAmount = 0;
473473
$validItemsCount = 0;
474474

475+
/** @var Quote\Item $item */
475476
foreach ($items as $item) {
476477
if (!$this->isValidItemForRule($item, $rule)
477478
|| ($item->getChildren() && $item->isChildrenCalculated())

0 commit comments

Comments
 (0)