Jump to content

Module to automatically detect customer location on map


jumbo

Recommended Posts

Hello All

 

I am looking for a module that does what the title says.

 

The nearest thing I could find is this module here: https://addons.prestashop.com/en/shipping-carriers/23639-choose-shipping-address-on-map-delivery-map.html

 

However this one requires the customers to manually pin-point their location on the map. I need one that can automatically detect the user's GPS coordinates.

 

Does such a module exist?

Link to comment
Share on other sites

  • 10 months later...

we are looking at adding 

https://www.maxmind.com/en/geoip2-precision-services

lookup to our Geo Targeting Pro (see on addons).

this is to support primarily using zipcode for US Fedex Realtime lookup.  then at checkout we will populate the zipcode so the fedex lookup fires and rates are displayed before login.

this new lookup we are adding also has Approximate Latitude/Longitude.

this I think is the only way to automatically detect because to use javascript, the customer is promted to share location info, which we think is a visitor turn off.  

happy geo'ing

 

el

 

Link to comment
Share on other sites

Hi, 

You can use server side library (PHP) like maxmind as suggested by El Patron Or you can also achieve the same  & you can also use the Google JS lib for location. 

But it will ask for the confirmation from the customer & will provide the location only if customer approve the same.

I think this code will work.

https://developers.google.com/maps/documentation/javascript/geolocation

Link to comment
Share on other sites

On 31/8/2018 at 3:50 AM, Knowband Plugins said:

Hi, 

You can use server side library (PHP) like maxmind as suggested by El Patron Or you can also achieve the same  & you can also use the Google JS lib for location. 

But it will ask for the confirmation from the customer & will provide the location only if customer approve the same.

I think this code will work.

https://developers.google.com/maps/documentation/javascript/geolocation

 

fyi:  something we have to add to many clients shops when they use geolocation strategy is that opc modules for non-logged do not auto localize country.  maybe yours does now not sure but have not seen an opc 3rd party module doing this.  Be great if you all did. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...