Skip to content

Commit 0ef9ba0

Browse files
committed
Update cartAddressId through cart billing address.
1 parent 6ab1392 commit 0ef9ba0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingMethodsOnCart.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ public function execute(ContextInterface $context, CartInterface $cart, array $s
6060
}
6161
$methodCode = $shippingMethodInput['method_code'];
6262

63-
// $quoteAddress = $this->getQuoteAddress->execute($cart, $context->getUserId());
64-
// $this->assignShippingMethodToCart->execute($cart, $quoteAddress, $carrierCode, $methodCode);
65-
$quoteAddress = $cart->getShippingAddress();
63+
$cartAddressId = $cart->getBillingAddress()->getId();
64+
$quoteAddress = $this->getQuoteAddress->execute($cart, $cartAddressId, $context->getUserId());
6665
$this->assignShippingMethodToCart->execute($cart, $quoteAddress, $carrierCode, $methodCode);
6766
}
6867
}

0 commit comments

Comments
 (0)