Skip to content

Commit c993833

Browse files
author
Stanislav Idolov
authored
ENGCOM-3226: Allow set billing information via API with existing address #18704
2 parents ffd0c73 + d6ef9b2 commit c993833

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Quote/Model/BillingAddressManagement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $addres
7777
{
7878
/** @var \Magento\Quote\Model\Quote $quote */
7979
$quote = $this->quoteRepository->getActive($cartId);
80+
$address->setCustomerId($quote->getCustomerId());
8081
$quote->removeAddress($quote->getBillingAddress()->getId());
8182
$quote->setBillingAddress($address);
8283
try {

0 commit comments

Comments
 (0)