I want to get default store country name using javascript code. i have setup 5 store in my shopify theme,i want to get default store name using javascript , is this possible ???
Asked
Active
Viewed 419 times
-1

Mars
- 1
- 1
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 06 '21 at 21:33
1 Answers
0
Use the Shopify
global JS variable Shopify.country
.

Juandres Yepes Narvaez
- 154
- 5
-
-
-
@Juandras from this Country code is getting fetched but it is not of default country code . – Mars Sep 30 '21 at 05:45
-
https://stackoverflow.com/questions/3489460/how-to-get-visitors-location-i-e-country-using-geolocation – Juandres Yepes Narvaez Nov 04 '21 at 03:07