-
Notifications
You must be signed in to change notification settings - Fork 263
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
Is it possible to localize a checkout url? #927
Comments
@blasco Any chance you figured this out? |
I have the same question but regarding the Checkout's translations. I came across an approach like This is the URL I get from the buy-sdk: https://christian-metzner.myshopify.com/58368163980/checkouts/f3885cfdb02b596f66adf5370440dbb4?key=d77d7a3562834230534a1885cbf3934c And this is the final URL on the Shopify hosted checkout: https://christian-metzner.myshopify.com/checkouts/co/f3885cfdb02b596f66adf5370440dbb4/information If I append the locale code on the hosted checkout URL, it works, but I don't get this actual URL from the buy-sdk. So if I take the final URL structure from Shopify's checkout and splice in the ID I get from the buy-sdk I have a working localized solution. |
Having the same issue. I recall this working in the past couple of years, but I just noticed on one of my sites I am not able to pass params all of a sudden. |
Same issue here! I use the https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js I can think of two very hacky solutions which I have not tested and don't even want to implement. option1: function beforeChartInit(cart): void { option 2 which is probably more usable is to associate a special domain to every language like: en-mydomain.myshopify.com and de-mydomain.myshopify.com and then use this one this might work as well. 🙏 shopify goods please help us out |
Update |
So this took me a while but @owenhoskins thanks for listing the other issue and thanks to @ansmlc for the original pseudocode. In the og pseudocode it was mentioned that you could read out a custom attribute but I did not find where I could set that once the sdk creates the checkout but I think it does not matter. Here is most of my code:
Maybe it is also possible to use https://shopify.dev/docs/api/storefront/2023-10/mutations/cartAttributesUpdate but I was not able to quickly achieve this. |
Is there a way to localize the generated checkout webUrl to match a desired currency?
The text was updated successfully, but these errors were encountered: