Skip to content

Commit 1de952a

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,10 @@ public function calculate(
6868
}
6969
$quoteShippingAddress->setCollectShippingRates(true)
7070
->setShippingMethod($shippingMethod);
71-
72-
$this->cartRepository->save($quote);
73-
$quote->setTotalsCollectedFlag(false);
7471
}
7572
}
76-
$quote->collectTotals();
73+
$quote->setTotalsCollectedFlag(false);
74+
$this->cartRepository->save($quote);
7775

7876
return $this->cartTotalRepository->get($cartId);
7977
}

0 commit comments

Comments
 (0)