Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I have tried to implement {{ localization.country.unit_system }} but noticed that for the UK/GB, the unit system is listed as imperial which is incorrect. Has anyone got a list of values so that I can see if there are any others that look wrong?
Solved! Go to the solution
This is an accepted solution.
This GraphQL query on the Storefront API seems to do it:
query {
localization {
availableCountries {
name
unitSystem
}
}
}
I didn't want to paste the whole json on this thread but here's a github Gist of the results:
https://gist.github.com/sambarnes90/227bb1bcf8b428c08b123f0170d074cb
This is an accepted solution.
This GraphQL query on the Storefront API seems to do it:
query {
localization {
availableCountries {
name
unitSystem
}
}
}
I didn't want to paste the whole json on this thread but here's a github Gist of the results:
https://gist.github.com/sambarnes90/227bb1bcf8b428c08b123f0170d074cb
Thank you!!
Still not sure why UK is listed as Imperial but thanks for the list query!