Skip to content

Commit 35b8645

Browse files
committed
MC-37484: Cart query error when trying to switch store view
1 parent 5b08a0a commit 35b8645

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
6060
return [
6161
'price' => [
6262
'currency' => $currencyCode,
63-
'value' => $cartItem->getConvertedPrice(),
63+
'value' => $cartItem->getCalculationPrice(),
6464
],
6565
'row_total' => [
6666
'currency' => $currencyCode,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
6969
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
7070
$this->checkCartCheckoutAllowance->execute($cart);
7171
$this->setShippingAddressesOnCart->execute($context, $cart, $shippingAddresses);
72+
// reload updated cart
73+
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
7274

7375
return [
7476
'cart' => [

0 commit comments

Comments
 (0)