Geolocation app - API

StephenK
Shopify Partner
40 2 16

If jQuery is being loaded after this snippet of code it might not work.

Say if your snippet is in the middle of a template and jQuery is loaded just before the </body> tag

Some Shopify/Ecommerce related articles - https://medium.com/@stephenkeable
0 Likes
Lassepappa
New Member
7 0 0

Hi!  Im not loading jQuery, I thought this was a native function for shopify and that shopify loads jQuery.

Iam running trhis snippet just before </body> in the theme.liquid file.

Shoiuld o load something like <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

in head?

Do I need geolocation app for this to work?

 

Kindly / Lasse

 

 

0 Likes
StephenK
Shopify Partner
40 2 16

What's your store URL, that's probably the easiest thing to do here?

Some Shopify/Ecommerce related articles - https://medium.com/@stephenkeable
0 Likes
Lassepappa
New Member
7 0 0

the function is not live as i have not gotten it to work yet.

0 Likes