Bug: Storefront 2022-07 RC regarding new CartAPI and Currency

steveb3210
Shopify Partner
7 1 1

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

 

Replies 0 (0)