storefront api International pricing doesn't work for query checkout info

sezhang
New Member
1 0 0

I'm building an app with shopify storefront api. I want to implement a currency picker which calls international pricing api released in 2021-07 version:

https://shopify.dev/custom-storefronts/products/international-pricing

But when I try to fetch checkout info, I found that the argument passed in @inContext doesn't work for some fields like subtotalPriceV2, lineItemsSubtotalPrice. But it also did work for other fields like lineItems. Here are some screenshots:

Screen Shot 2021-08-02 at 4.47.02 PM.png

Screen Shot 2021-08-02 at 4.48.02 PM.png

 Could some one help to see why?

0 Likes
Matt-Pipelabs
Excursionist
13 1 1

@sezhang I'm not 100% sure but I would imagine this is due to the actual cart itself being in the currency which is set on the store, and the ability to get the converted price is more for display purposes. Not 100% certain on that however.

0 Likes