jumbo Posted October 6, 2017 Share Posted October 6, 2017 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 More sharing options...
rubensaid Posted August 29, 2018 Share Posted August 29, 2018 You can modify the javascript of that module in order to get actual GPS position of user Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 30, 2018 Share Posted August 30, 2018 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 More sharing options...
Knowband Plugins Posted August 31, 2018 Share Posted August 31, 2018 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 More sharing options...
PrestaHeroes USA Posted September 3, 2018 Share Posted September 3, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now