Skip to content

Commit d0f5baf

Browse files
committed
MAGETWO-57862: [Backport] - Price in cart does not update correctly when price is changed in admin. - for 2.0
1 parent 1ae152c commit d0f5baf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public function calculate(
5656
$addressInformation->getShippingCarrierCode() . '_' . $addressInformation->getShippingMethodCode()
5757
);
5858
}
59+
60+
if ($quote->getShippingAddress()->dataHasChangedFor('shipping_method')) {
61+
$quote->setTotalsCollectedFlag(false);
62+
}
5963
$quote->collectTotals();
6064

6165
return $this->cartTotalRepository->get($cartId);

0 commit comments

Comments
 (0)