Geolocation Hook For WHMCS

Geolocation Hook For WHMCS

Developed By ModulesGarden

Compatible with WHMCS v8.8

Geolocation Hook For WHMCS will automate the switch of a currency, language or even the template of your WHMCS client area depending on the location of your audience. Upon detection of a country from where each of your visitors is, these crucial elements of your website will be adjusted instantly to secure customer experience that is personalized to perfection.

Under quick and very simple configuration, you will be able to benefit from MaxMind GeoIP2 or apply your own submodule to identify the location of not logged in users. As another option, you can choose the template to be changed according to the device used, be it a tablet or a mobile, or even the domain your visitor was redirected from. The hook will grant you the flexibility to select specific pages of your website where the alteration of its components should be performed. It will be also up to you whether to permit your clients to personally switch the currency.

Among further benefits lies the support for Polish Language Translation For WHMCS, allowing you to introduce a comprehensive Polish localization to the list of languages covered by the automatic switch.

Cater to individual preferences of your visitors with consummate ease. Download Geolocation Hook For WHMCS for free and transform customer journey from dated to avant-garde!


  • Detect User Country With:
    • MaxMind GeoIP2 Submodule
    • Own Submodule
  • Set Up Automatically For Not Logged In Users:
    • Currency Per Country
    • Language Per Country
    • Client Area Template Per:
      • Country
      • Language
      • User Device (Mobile, Tablet)
      • Domain User Was Redirected From
  • Allow User To Switch Currency
  • Allow Change Of Client Area Template On Language Alteration
  • Select Pages Where Hook Should Be Active
  • Disable Hook For Specified IP Addresses And IP Pools
  • Disable Hook Redirects For Specified User-Agent Identifiers

General Info:

  • Supports WHMCS V8.9 Back To WHMCS 8.6
  • Supports PHP 8.1 Back To PHP 7.4
  • Supports Polish Language Translation For WHMCS - Complete Localization Of Both Client Area And Admin Area



5 stars
4 stars
3 stars
2 stars
1 star

System Administrator @system7126

December 12, 2022 at 03:21:05 AM

Upgrade to WHMCS 8.6.1 and PHP 8.1, because it doesn't upgrade.

Thank you

  • 1 year ago
  • Version Number 2.2.5
  • Edited

Luz Otaiza @luz1904

September 20, 2022 at 04:42:43 PM

Funciona perfectamente, el error de que en la página de registro no agarra el hook, solo hay que añadir el link dentro del archivo config.php en la línea 80 y funciona.

  • 1 year ago
  • Version Number 2.2.5
  • Edited

Abubakar siddique @abubakar5869

November 25, 2020 at 07:18:27 PM

I want to use this plugin for my company

Does it will work for more than 3 currencies ???. i want to show auto currency set as per location. Does this plugin fulfill all required functionality.

  • 3 years ago
  • Version Number 2.2.2

Czink Albertus @czink5504

October 14, 2020 at 09:30:46 AM

There are problems. If someone calls directly the URL to register (registration.php), he logs in with the wrong language and the hook does not work. On other sites the hook works, but some users register directly via the registration.php page if they have received the link via ticket.

  • 3 years ago
  • Version Number 2.2.2

Benjamin Biswas @benjamin5545

June 11, 2020 at 12:12:46 PM

Thanks, it's working fine after downloading & uploading new database from Maxmind. So, yon can update your default database to new one.

  • 3 years ago
  • Version Number 2.2.1
  • Edited

Luke Watson @luke7728

February 1, 2019 at 06:49:15 PM

Does exactly what it says on the tin, great little hook that ensures visitors see the website in the correct language, and currency.

  • 5 years ago
  • Version Number 2.1.0

Version Compatibility

Compatible with WHMCS v8.8

Full Version Compatibility

  • Selected versions of WHMCS v8.9
  • Selected versions of WHMCS v8.8
  • All versions of WHMCS v8.7
  • All versions of WHMCS v8.6

Support for this product

The best place to start if you need help with a specific product is to contact the developer. All WHMCS Marketplace developers have both a website and support URL listed.

Developed By ModulesGarden


v2.2.6 Released January 25th, 2024

Latest Version

  • New Feature: WHMCS V8.8 and V8.9 support
  • New Feature: Support for PHP 8.1 version
  • Removed: Support for WHMCS V8.5 and previous
  • Removed: Support for PHP 7.3 version
  • Bug Fix: Adjusted method of detecting IP addresses to avoid problems with specific servers that might use additional protection such as Cloudflare - case #39
  • Bug Fix: Solved problem with the CRM For WHMCS module where the PDF quote viewed from the admin area did not consider the default language set in WHMCS general settings - case #44


Previous Versions

v2.2.5 Released March 29th, 2022

View/hide detailed changelog

  • New Feature: WHMCS V8.4 support
  • Removed: Support for WHMCS V8.0 and previous


v2.2.4 Released October 28th, 2021

View/hide detailed changelog

  • New Feature: WHMCS V8.3 support
  • Removed: Support for WHMCS V7.10 and previous
  • Bug Fix: The "Country" field will be now set automatically to the corresponding client location when providing a billing address on the order checkout page - case #30


v2.2.3 Released May 17th, 2021

View/hide detailed changelog

  • New Feature: Support for WHMCS V8.1
  • Removed: Support for WHMCS V7.9 and previous
  • Removed: Support for PHP 7.1 version


v2.2.2 Released August 25th, 2020

View/hide detailed changelog

  • New Feature: WHMCS V8.0 and PHP 7.4 support
  • Removed: Support for PHP 7.0 and previous
  • Bug Fix: Prevented "InvalidArgumentException: The value "" is not a valid IP address" error that might have occurred when executing the cron task of Domain Orders Extended For WHMCS module - case #25


v2.2.1 Released May 4th, 2020

View/hide detailed changelog

  • New Feature: WHMCS V7.10 support
  • Removed: Support for WHMCS V7.7 and previous


v2.2.0 Released October 30th, 2019

View/hide detailed changelog

  • New Feature: WHMCS V7.8 support
  • Bug Fix: Resolved problem with switching languages when the template remained unchanged
  • Bug Fix: If the ‘$previentSwitchCurrency’ option in the ‘config.php’ file is set as false, the change of currency will be now possible
  • Bug Fix: Corrected issue with choosing a country while registering new clients


v2.1.0 Released January 16th, 2019

View/hide detailed changelog

  • New Feature: Set a different template based on the user device (tablet and mobile) - case #8
  • New Feature: Set a different template based on the domain from which the user was redirected to your website
  • New Feature: Disable the hook execution for specified IP addresses and IP pools based on their IP CIDR
  • New Feature: Disable the hook redirects for specified user agent identifiers (e.g. for Google Bot)
  • Improvement: The change of a language and a template will no longer be based on the redirection
  • Bug Fix: The currency will now be properly set on every site of the cart for non-logged in users - case #13, #14
  • Bug Fix: Minor code tweak-ups and configuration comments adjustments


v2.0.1 Released July 23rd, 2018

View/hide detailed changelog

  • Bug Fix: Resolved minor issues with redirecting
  • Bug Fix: Corrected errors catching in cases the country cannot be located on the basis of the IP address


v2.0 Released February 8th, 2017

View/hide detailed changelog

  • Improvement: Fully rewritten code
  • New Feature: WHMCS V7 support
  • New Feature: MaxMind GeoIP2 submodule support
  • New Feature: Utilize own submodules to detect user country


v1.0.2 Released April 5th, 2016

View/hide detailed changelog

  • New Feature: Ability to define the HTTP response code for site redirection
  • Bug Fix: Resolved problem with SEO


v1.0.1 Released October 7th, 2015

View/hide detailed changelog

  • New Feature: WHMCS V6 support


v1.0.0 Released March 11th, 2013

View/hide detailed changelog

  • Stable Release


See also

Greek language file for client area

Greek language file for client area

GeoIP Localisation

Automatically detects a visitor's location by IP and sets the language and/or currency you defined for his particular country.

Auto Currency

Fully supported Automatic Currency Selection WHMCS! The customers currency is detected automatically during their first order and set, so they always get to pay in their own currency!

German E-Mail Templates for WHMCS

Here you get a German translation of all WHMCS E-Mail Templates

German Admin Langfile

German translation of the WHMCS language file for the Admin area