From 8896c7f1916d2c2817687375ed86c5d4799b72d8 Mon Sep 17 00:00:00 2001 From: Alec Ritson Date: Wed, 21 Aug 2024 08:16:34 +0100 Subject: [PATCH] Force calculate the cart after shipping estimate --- packages/core/src/Managers/CartSessionManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Managers/CartSessionManager.php b/packages/core/src/Managers/CartSessionManager.php index 975c104d6b..5884193f03 100644 --- a/packages/core/src/Managers/CartSessionManager.php +++ b/packages/core/src/Managers/CartSessionManager.php @@ -149,7 +149,6 @@ private function fetchOrCreate(bool $create = false, bool $estimateShipping = fa } $this->cart = $cart; - if ($calculate) { $this->cart->calculate(); } @@ -175,6 +174,7 @@ public function estimateShipping(): void $this->getShippingEstimateMeta(), setOverride: true ); + $this->cart->calculate(force: true); } /**