Skip to content

Commit

Permalink
Merge pull request #2258 from dpfaffenbauer/issue/cart-item-rules
Browse files Browse the repository at this point in the history
[Order] don't add CartItemPriceRule if not applicable
  • Loading branch information
dpfaffenbauer committed Apr 24, 2023
2 parents fb94425 + ebfc462 commit 98c2856
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ public function applyRule(OrderInterface $cart, array $configuration, PriceRuleI
if (!$result) {
$item->removePriceRule($priceRuleItem);
}

if (!$existingPriceRule) {
else if (!$existingPriceRule) {
$item->addPriceRule($priceRuleItem);
}

Expand Down

0 comments on commit 98c2856

Please sign in to comment.