Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I'm using this new CartAPI with a context and a buyerIdentity.
mutation($input: CartInput!, $contextCountry: CountryCode!) @inContext(country: $contextCountry)
{ cartCreate(input: $input) {
cart {
...CartFragment
}
userErrors { field message }
}
}
If you create a cart with no items in it, the total field will return the store's currency, rather than the cart's currency for the total value. While 0, I need the correct currency to show the correct currency symbol next to the 0 in the cart listing.
If you then add items to the cart, the response will then correctly show the currency that the cart is in..
Thanks,
Stephen