Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are no admin settings, the module is active when installed.

Backend

Backend helper

If geolocation is needed inside BE logic then \MageSuite\Geolocation\Service\CountryResolverInterface should be injected into class constructor.

...

A custom IP address can be passed to resolve method, otherwise, IP from server headers will be taken into account.

...

Frontend

...

Two-letter ISO country code of a user (or empty string when IP address location was not detected) can be fetched by javascript in the following way:

...