-
Notifications
You must be signed in to change notification settings - Fork 290
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
Items added to the cart or updated within the cart do not maintain the selected currency #1807
Comments
Hi @rylanharper, I'm sorry about this issue. It's a known problem that we are currently working on. I think a quick fix might be to make sure all queries |
If you are using ie:
if you are using just the cart handler, you can override the language & country to the same ones being presented to the user. ie.
As what @blittle mentioned, we are working on this problem, what we suggested is a temporary workaround |
@blittle No worries, just wanted to report the issue. Yes, all my cart queries are using @wizardlyhel Thanks for this! This does seem to fix some issues in Hydrogen, but the issue is still there for other frameworks utilizing he API through GraphQL. Appreciate the update from you both:) |
Hey all, just checking in on the status of this issue? Not sure if I should implement the temporary solutions (which requires a lot more code) or wait for a fix. |
I don't have an ETA on this but it is being actively worked on. |
Okay good to know. Thank you!:) |
@rylanharper I just got word that the fix has rolled out to production. I have verified the fix is on the hydrogen.shop |
@wizardlyhel We just noticed this issue on our Hydrogen storefront. We recently upgraded to Hydrogen 2024-4-2, but unsure if we were having the error before. Do you know the details of the fix that went out and anything else we can do? |
@MMMPhoto This is working fine for me in all my headless environments, so its not the API (I am using the I'd recommend opening up a new issue if it persists. |
Which package or tool is having this issue?
Storefront API
What version of that package or tool are you using?
2024-01
Steps to Reproduce
Go to Hydrogen or any headless shop (Next, Nuxt, Svelte) that uses the Shopify API. Add and item to the cart, change the currency, and then update or add a new item. The currency will default back to the original store currency.
This has been going on for about a week now. This is happening on my Hydrogen store and Nuxt storefront using the Shopify API. This seems to be an API issue.
Expected Behavior
Items added to the cart or updated within the cart should maintain the selected localization currency code
Actual Behavior
Items added to the cart or updated within the cart do not maintain the selected localization currency code. Instead, the item prices revert back to the default store currency.
The text was updated successfully, but these errors were encountered: