Skip to content

Commit 5c3cb17

Browse files
committed
Add cart address id to shipping address
This is required for setting quote address shipping methods
1 parent 0d0b300 commit 5c3cb17

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function execute(QuoteAddress $address): array
4141
$addressData['model'] = $address;
4242

4343
$addressData = array_merge($addressData, [
44+
'address_id' => $address->getId(),
4445
'country' => [
4546
'code' => $address->getCountryId(),
4647
'label' => $address->getCountry()

app/code/Magento/QuoteGraphQl/etc/schema.graphqls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ type Cart {
128128
}
129129

130130
type CartAddress {
131+
address_id: Int
131132
firstname: String
132133
lastname: String
133134
company: String

0 commit comments

Comments
 (0)