Skip to content

Commit f3b7c81

Browse files
committed
ACP2E-2520: Once Cart Become Virtual Cart after removing physical products it still returns shipping method and address in Cart Quote Graphql response
1 parent a051525 commit f3b7c81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAddresses.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
5454
$cart = $value['model'];
5555

5656
$addressesData = [];
57+
58+
if ($cart->getIsVirtual()) {
59+
return $addressesData;
60+
}
61+
5762
$shippingAddresses = $cart->getAllShippingAddresses();
5863

5964
if (count($shippingAddresses)) {

0 commit comments

Comments
 (0)