Skip to content

Commit 3c3d7ff

Browse files
committed
- Remove cart_address_id
- remove condition from SetShippingMethodsOnCart
1 parent 810780b commit 3c3d7ff

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ public function execute(ContextInterface $context, CartInterface $cart, array $s
5050
}
5151
$shippingMethodInput = current($shippingMethodsInput);
5252

53-
if (!isset($shippingMethodInput['cart_address_id']) || empty($shippingMethodInput['cart_address_id'])) {
54-
throw new GraphQlInputException(__('Required parameter "cart_address_id" is missing.'));
55-
}
56-
$cartAddressId = $shippingMethodInput['cart_address_id'];
57-
5853
if (!isset($shippingMethodInput['carrier_code']) || empty($shippingMethodInput['carrier_code'])) {
5954
throw new GraphQlInputException(__('Required parameter "carrier_code" is missing.'));
6055
}
@@ -65,7 +60,7 @@ public function execute(ContextInterface $context, CartInterface $cart, array $s
6560
}
6661
$methodCode = $shippingMethodInput['method_code'];
6762

68-
$quoteAddress = $this->getQuoteAddress->execute($cart, $cartAddressId, $context->getUserId());
69-
$this->assignShippingMethodToCart->execute($cart, $quoteAddress, $carrierCode, $methodCode);
63+
// $quoteAddress = $this->getQuoteAddress->execute($cart, $context->getUserId());
64+
// $this->assignShippingMethodToCart->execute($cart, $quoteAddress, $carrierCode, $methodCode);
7065
}
7166
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ input SetShippingMethodsOnCartInput {
110110
}
111111

112112
input ShippingMethodInput {
113-
cart_address_id: Int!
114113
carrier_code: String!
115114
method_code: String!
116115
}

0 commit comments

Comments
 (0)