Skip to content

Commit 7d3035c

Browse files
author
Alex Akimov
committed
MAGETWO-44714: Update Multishipping Address Processing
1 parent f7f995b commit 7d3035c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Multishipping/Model/Checkout/Type/Multishipping.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ protected function _addShippingItem($quoteItemId, $data)
471471
}
472472

473473
$quoteAddress = $this->getQuote()->getShippingAddressByCustomerAddressId($address->getId());
474+
$quoteAddress->setCustomerAddressId($addressId);
474475
$quoteAddressItem = $quoteAddress->getItemByQuoteItemId($quoteItemId);
475476
if ($quoteAddressItem) {
476477
$quoteAddressItem->setQty((int)($quoteAddressItem->getQty() + $qty));
@@ -936,6 +937,6 @@ protected function isAddressIdApplicable($addressId)
936937
/** @var \Magento\Customer\Api\Data\AddressInterface $address */
937938
return $address->getId();
938939
}, $this->getCustomer()->getAddresses());
939-
return in_array($addressId, $applicableAddressIds);
940+
return !is_numeric($addressId) || in_array($addressId, $applicableAddressIds);
940941
}
941942
}

0 commit comments

Comments
 (0)