Skip to content

Commit 5f2f97c

Browse files
AC-2044::Cart Price Rule with shipping method set as condition is not working Magento - fix integration failure
1 parent 1de952a commit 5f2f97c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Checkout/Model/TotalsInformationManagement.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ public function calculate(
6868
}
6969
$quoteShippingAddress->setCollectShippingRates(true)
7070
->setShippingMethod($shippingMethod);
71+
$quoteShippingAddress->save();
7172
}
7273
}
73-
$quote->setTotalsCollectedFlag(false);
74-
$this->cartRepository->save($quote);
7574

7675
return $this->cartTotalRepository->get($cartId);
7776
}

0 commit comments

Comments
 (0)