Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

List of values for: Country.Unit_System please?

Solved

List of values for: Country.Unit_System please?

joestephenson
Visitor
3 0 0

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?

Accepted Solution (1)

SB_90
Shopify Partner
216 52 70

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 

View solution in original post

Replies 2 (2)

SB_90
Shopify Partner
216 52 70

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 

joestephenson
Visitor
3 0 0

Thank you!!

 

Still not sure why UK is listed as Imperial but thanks for the list query!