Use Shopify Geolocation app to show country specific shipping rates

Highlighted
Shopify Partner
10 1 0

Hey,

 

I'm using the Shopify Geolocation app to suggest a currency switch to foreign visitors. This is working great.

Now my plan is to show country specific shipping information on my cart page. Of course, I can look into an additional geolocation app/service, but ideally I keep only one implementation to optimize performance.

 

The Shopify Geolocation app is retrieving the visitors country (and parsing this as {{ country }} in their injected code.

Would it be possible at all to use this data somehow in the rest of my shop. Any way to build something custom with liquid or javascript which uses input from the Geolocation app?

Thanks,

Joost

0 Likes