Put the geolocation plugin into test mode

  • Posts: 35
  • Thank you received: 1
12 years 3 months ago #61440

Hello,

In order to test the different zone/currency assignments, I would need the geolocation plugin to be able to return a specific zone instead of my real location. That would be a nice addition to the plugin parameters. Until then, how could I simulate this?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 3 months ago #61506

Hi bohemier,

You can use a proxy based in other country to try the geolocation plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 1
12 years 3 months ago #61568

Hi Xavier,

I tried to use proxies but it seems that the ipinfodb service still knows where I am, even though I use a proxy in another country (and even though ipinfodb lists me in the proxy country on their home page).

I made a simple addition to the plugin parameters and plugin code to add a test zone. Are you interested in that addition?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 3 months ago #61601

Well, The best is really to try with a proxy. You need to use an anonymous proxy. Otherwise, it will detect your real IP.
Also, you need to clear your browser's cookies and login/logout before each test. Otherwise, the information is cached in the session in order to not flood the Geolocation service.

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 7
9 years 9 months ago #191977

Actually a test mode to the Geolocation plugin would be very useful, I'd like to use it to set currency but have no way of knowing it's working. Using a proxy isn't actually practical in a development environment.

Ian

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 9 months ago #192008

Hi,

Thank you for your feedback.
The thing is that adding a test mode to the plugin to enter the zone you want to force would then bypass the geolocation process and thus bypass your tests. I'm afraid that these tests will have to be performed on an online development environment so that you can use proxies if you want to completely test the geolocation system.

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 7
9 years 9 months ago #192025

Hi Nicolas,

Thanks for the reply, but yes, that's the whole point of having a test mode, to make it think it's in a different location and test how Hikashop responds. I understand what you are saying, it's not a test of the whole system, but a test mode would give me a bit more confidence that the part of the process I am in control of is going to do what I'm expecting.

Ian

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #192031

Hi,

In the latest version of Internet explorer, under the "emulation" tab of the console (F12) you can simulate a location.
So to do our tests, it seems to be the easiest way at this time.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
  • Hikashop Business
9 years 2 months ago #213840

Hello Xavier, I am also interested to set an IP in the plugin for development purposes.

Does the GeoIP locator not still look use the location based on the IP fed to the locator service instead of a GPS locator from Internet Explorer?

Thanks,
Frank

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 2 months ago #213846

Hi,

The geolocation IP uses the IP of your computer. It has nothing to do with Internet Explorer. Internet Explorer has an option to feed the geolocation system a fake IP address (for tests), but you can also do it by connecting to your website through a web proxy.

Please Log in or Create an account to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum