Hi there,
I am trying to implement a Store using the Storefront API and I can’t figure out how to detect the customers country so I can present the product’s price in their country’s currency. Our store setup supports multiple currencies and I get the variants’ prices in different currency but of course we need to know which one to present.
I also used the query for location.country but this returns the same country always. Here is an example query:
localization {
availableCountries {
isoCode
currency {
isoCode
}
}
country {
currency {
isoCode
name
symbol
}
isoCode
name
unitSystem
}
}