Skip to content

Commit 199afbf

Browse files
#26622 - Change to check for both parentItemId and parentItem
1 parent e943bda commit 199afbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function initTotals($items, Address $address)
383383

384384
foreach ($items as $item) {
385385
//Skipping child items to avoid double calculations
386-
if ($item->getParentItem()) {
386+
if ($item->getParentItemId() || $item->getParentItem()) {
387387
continue;
388388
}
389389
if (!$rule->getActions()->validate($item)) {

0 commit comments

Comments
 (0)