datakick Posted November 6, 2019 Posted November 6, 2019 Hello everyone, as many of you probably know, geolocation feature in thirtybees needs to be fixed. In 1.1.0, this feature is based on MaxMind database v1, which is no longer maintained, or updated. It also contains a couple of bugs. Basically, this feature was unusable in 1.1.0 Not anymore, hopefully. This feature was not only fixed, but also extended. The main difference is that will will not depend on MaxMind database (or service) at all. Instead, core defines new services interface for any module that provide geolocation service. Merchant will be able to choose which service should be used. There will be new thirtybees native module that provides geolocation service based on MaxMind database v2. And hopefully, there will be more in the future. I personally will to extend my commercial CloudFlare GeoIP module to provide geolocation services as well. Now, I would like to ask you guys to test this feature before it goes out in the next release. If you are willing to participate, please follow these steps: 1. update your store to issue-828 branch 2. Install maxmindgeoip2 module You can download it here:maxmindgeoip2.zip 3. Configure this module - You have to download maxmind database, either manually, or by using Download button Result should look like this: 4. go to Preferences > Geolocation and select this new module as a geolocation service 5. Test, test, and test Please test the feature and report any problems or issues you have encountered. Both with new module, and with core changes. 2 2
zen Posted November 6, 2019 Posted November 6, 2019 no problem for Module Installation and geo database download and update. The Module seems working fine with my first tests. Nice JOB ! 🙂 1 1
datakick Posted November 8, 2019 Author Posted November 8, 2019 Thanks @zen for your testing, really appreciated. Anyone else tried this, or has some input? Remember, once it's integrated and released, it's too late to complain... 🙂 1
movieseals Posted November 8, 2019 Posted November 8, 2019 7 hours ago, datakick said: Thanks @zen for your testing, really appreciated. Anyone else tried this, or has some input? Remember, once it's integrated and released, it's too late to complain... 🙂 Installing it today and will run a series of tests as I have a need for geolocation with several modules and it has been a bit wonky in a while. Will keep you posted. 1
x97wehner Posted November 8, 2019 Posted November 8, 2019 (edited) Installed and ran today. I only do business in two countries, US and CAN. Used geoscreenshot.com to test in in both countries and in both, it set the correct currency based on location so I'd say it works. Edited November 8, 2019 by x97wehner 1
Factor Posted November 8, 2019 Posted November 8, 2019 Praise GOD... @datakick thanks for this 10 hours ago, datakick said: it's too late to complain... 🙂 Its never to late to complain.... I wont be able to test until next week my test site is down 🙄
x97wehner Posted November 13, 2019 Posted November 13, 2019 @datakick Was this rolled into the latest BE release then or are we still testing?
movieseals Posted November 13, 2019 Posted November 13, 2019 So far, so good for me. Everything works as expected, even with third party plugins. 1
datakick Posted November 13, 2019 Author Posted November 13, 2019 Yes, this is now in bleeding edge, and the maxmindgeoip2 module has been released as well. You can install it even in 1.1.0 and prior, but it will have no effect 1
x97wehner Posted November 13, 2019 Posted November 13, 2019 1 hour ago, datakick said: Yes, this is now in bleeding edge, and the maxmindgeoip2 module has been released as well. You can install it even in 1.1.0 and prior, but it will have no effect Perfect thanks. Wanted to get this before the holiday purchasing season really kicks in.
Factor Posted November 15, 2019 Posted November 15, 2019 On 11/13/2019 at 8:46 AM, datakick said: You can install it even in 1.1.0 and prior, but it will have no effect How long before this in Stable?
datakick Posted November 15, 2019 Author Posted November 15, 2019 52 minutes ago, Factor said: How long before this in Stable? Are you asking when the next release will be? Probably by the end of this month 1
Factor Posted November 15, 2019 Posted November 15, 2019 (edited) I suppose yes. I am wondering when all of this great work on this area of the system will be included in the Stable side. Thanks again. Edited November 15, 2019 by Factor
Factor Posted January 17, 2020 Posted January 17, 2020 https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/ Now what? 1
toplakd Posted January 18, 2020 Posted January 18, 2020 (edited) How to add database manualy 1.Go to maxmind.com and create free account. 2.Login to Account summary 3.Click on Download Databases 4.Download GeoLite2-City 5.Unpack and rename to: db.mmdb 6.Upload to /tools/geoip And you have succesfully updated the database manualy. Edited May 1, 2020 by toplakd
ThierryC01 Posted April 30, 2020 Posted April 30, 2020 As of April 30th, 2020 the issue-828 aforementioned does not exist, which one should we choose to get Geolocation working? I was using the default config and geolocation was not working anymore with the max mind database, so I have been told to switch to Bleeding-edge, and geolocation is still not working. I do not get the error message about the database but geolocation does not work at all. I need to restrict access to US and Canada only and when connecting from other countries using a VPN for testing, I can access the catalog from anywhere.
datakick Posted April 30, 2020 Author Posted April 30, 2020 47 minutes ago, ThierryC01 said: As of April 30th, 2020 the issue-828 aforementioned does not exist, which one should we choose to get Geolocation working? I was using the default config and geolocation was not working anymore with the max mind database, so I have been told to switch to Bleeding-edge, and geolocation is still not working. I do not get the error message about the database but geolocation does not work at all. I need to restrict access to US and Canada only and when connecting from other countries using a VPN for testing, I can access the catalog from anywhere. Are you using cloudflare, by any chance?
ThierryC01 Posted April 30, 2020 Posted April 30, 2020 No, I am using a shared hosting called O2switch. When I was using prestashop 1.6 it was working wonderful but since the last upgrade crashed everything, I decided to switch to Thirty Bees and geolocation is killing me right now!
toplakd Posted May 1, 2020 Posted May 1, 2020 (edited) Have you set which geolocation service should be used under Preferences/ Geolocation/ Geolocation Service? As it works like a charm. And yes, Thirty bees Bleeding Edge is needed for module to work, together with database which can be downloaded manualy from maxmind (steps for download are few posts above) If you access the shop from restricted country, than restricted-country.tpl gets loaded (which you can configure to show your own restricted info). Cant add pics due to forum denying all images 😞 Edited May 1, 2020 by toplakd
datakick Posted May 1, 2020 Author Posted May 1, 2020 Also check Advanced Parameters > Logs and look for entries that starts with MaxMindGeoIP2
ThierryC01 Posted May 1, 2020 Posted May 1, 2020 Well, I am using TB 1.1.0-1.1.x bleeding edge, Geolocation service has only one setting in dropbox, so it is set to MaxMind Geolocation, I reloaded once again the Geolite2 city database and it still does not block restricted countries!! I will try to delete everything and start over to be sure but I am using cpanel to install TB so, I have little control.
movieseals Posted May 1, 2020 Posted May 1, 2020 (edited) I had a similar issue for the same reasons as you: are you using the old database or the new one you need to register for? Things work well with the new one, you need to download it, change its name and put it in the geolocation folder yourself - the automated download is no longer allowed anyhow. With the new DB, it works for me. Did not with the old ones. Oh! And some modules do screw up with it - I had to uninstall at least one. Edited May 1, 2020 by movieseals
ThierryC01 Posted May 1, 2020 Posted May 1, 2020 Which module? I was using the new geolocation database.
ThierryC01 Posted May 1, 2020 Posted May 1, 2020 Here we go!! I reinstalled from scratch using cpanel, then updated to 1.1.0-1.1.x Bleeding edge. Re-downloaded the MaxMind database and uploaded it in due folder. Restricted my shop to US and Canada, other countries should not either see my catalog or order anything and here are the results using an iMac with Mac OS 10.15.4 and NordVPN to simulate connections from other countries: - Safari 13.1 never gets blocked whatsoever and whichever country I am connected to. - Microsoft Edge Dev Version 84.0.495.2 for Mac OS and Firefox 75.0 get blocked with an horrible : 503 Overloaded You cannot access this store from your country. We apologize for the inconvenience. So, since I am using mainly a Mac, I would never have seen it working. Question 1 is, why can Safari bypass the geolocation module? Question 2, is there a way to customize this horrible message? It should in no way display Overloaded!! Would be great to be able to customize this within the module configuration.
toplakd Posted May 1, 2020 Posted May 1, 2020 (edited) 13 hours ago, toplakd said: If you access the shop from restricted country, than restricted-country.tpl gets loaded (which you can configure to show your own restricted info). Reading helps. Edited May 1, 2020 by toplakd 1
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