Skip to content

Commit

Permalink
magento#38671 - Fix sales rules when rule is applied only on shipping…
Browse files Browse the repository at this point in the history
… amount
  • Loading branch information
Nuranto committed Apr 30, 2024
1 parent 995a05c commit ade2f68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/SalesRule/Model/Validator.php
Expand Up @@ -532,6 +532,7 @@ public function processShippingAmount(Address $address)
$address->setBaseShippingDiscountAmount($this->priceCurrency->roundPrice($baseDiscountAmount));
$appliedRuleIds[$rule->getRuleId()] = $rule->getRuleId();

$this->rulesApplier->maintainAddressCouponCode($address, $rule, $this->getCouponCode());
$this->rulesApplier->addDiscountDescription(
$address,
$rule,
Expand Down

0 comments on commit ade2f68

Please sign in to comment.