Skip to content

Commit

Permalink
Merge pull request #112 from bold-commerce/INTER-1126
Browse files Browse the repository at this point in the history
Set shipping assignment after clearing addresses
  • Loading branch information
nmalevanec authored Aug 15, 2023
2 parents 543fc84 + 33d5924 commit 5a3a3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Model/Quote/SetQuoteAddresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function setAddresses(
if ($billingAddress === null) {
$quote->removeAddress($quote->getBillingAddress()->getId());
$quote->removeAddress($quote->getShippingAddress()->getId());
$quote->getExtensionAttributes()->setShippingAssignments([]);
return $this->quoteResultBuilder->createSuccessResult($quote);
}
$shippingAddress = $shippingAddress === null || $shippingAddress->getSameAsBilling()
Expand Down

0 comments on commit 5a3a3d9

Please sign in to comment.