File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
app/code/Magento/QuoteGraphQl/Model/Cart
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,13 @@ public function execute(QuoteAddress $address): array
68
68
} else {
69
69
$ itemId = $ addressItem ->getQuoteItemId ();
70
70
}
71
-
71
+ $ productData = $ addressItem ->getProduct ()->getData ();
72
+ $ productData ['model ' ] = $ addressItem ->getProduct ();
72
73
$ addressItemsData [] = [
73
- 'cart_item_id ' => $ itemId ,
74
- 'quantity ' => $ addressItem ->getQty ()
74
+ 'id ' => $ itemId ,
75
+ 'quantity ' => $ addressItem ->getQty (),
76
+ 'product ' => $ productData ,
77
+ 'model ' => $ addressItem ,
75
78
];
76
79
}
77
80
$ addressData ['cart_items ' ] = $ addressItemsData ;
Original file line number Diff line number Diff line change @@ -137,8 +137,11 @@ private function getQuery(string $maskedQuoteId): string
137
137
cart (cart_id: " {$ maskedQuoteId }") {
138
138
shipping_addresses {
139
139
cart_items {
140
- cart_item_id
140
+ id
141
141
quantity
142
+ product {
143
+ sku
144
+ }
142
145
}
143
146
available_shipping_methods {
144
147
amount {
You can’t perform that action at this time.
0 commit comments