Skip to content

GraphQL - Return shipping total including tax in shipping method resolver #35338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SelectedShippingMethod.php
  • Loading branch information
Liam Toohey authored Feb 20, 2023
commit 19482941c4d6cc56e304a972e48f3985935a3d1e
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
'method_title' => $selectedShippingMethod->getMethodTitle() ?? '',
'amount' => [
'value' => $address->getShippingInclTax(),
'currency' => $address->getQuote()->getQuoteCurrencyCode(),
'currency' => $cart->getQuoteCurrencyCode(),
],
'price_excl_tax' => [
'value' => $selectedShippingMethod->getPriceExclTax(),
Expand Down