Skip to content

Commit

Permalink
Load and collect totals before returning set shipping method response (
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeBones authored May 6, 2024
1 parent ed8caab commit f400d5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Model/Quote/SetQuoteShippingMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public function setShippingMethod(
->setShippingCarrierCode($shippingCarrierCode)
->setShippingMethodCode($shippingMethodCode);
$this->shippingInformationManagement->saveAddressInformation($cartId, $shippingInformation);
// Load the quote again to get changes to shipping
$quote = $this->loadAndValidate->load($shopId, $cartId);
$quote->collectTotals();
return $this->quoteResultBuilder->createSuccessResult($quote);
}
}

0 comments on commit f400d5e

Please sign in to comment.