Skip to content

Commit

Permalink
Force calculate the cart after shipping estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Aug 21, 2024
1 parent 63313d2 commit 8896c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Managers/CartSessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ private function fetchOrCreate(bool $create = false, bool $estimateShipping = fa
}

$this->cart = $cart;

if ($calculate) {
$this->cart->calculate();
}
Expand All @@ -175,6 +174,7 @@ public function estimateShipping(): void
$this->getShippingEstimateMeta(),
setOverride: true
);
$this->cart->calculate(force: true);
}

/**
Expand Down

0 comments on commit 8896c7f

Please sign in to comment.