All modulesMagento 2 module

Location-based redirect

A visitor from another country gets a friendly suggestion to switch to the right store version (language, currency, delivery). Nobody is forced to move.

€190 + VAT · one-off licence, installation optional

Location-based redirect
About the module

What it does.

"A customer from another country lands on the wrong version of the store, sees the wrong language and a price that does not apply to them, and leaves." A forced redirect, on the other hand, annoys people who chose a version on purpose.

What it looks like in practice

A visitor from another country opens your store on a version that does not serve their country. A bar appears asking whether they want to switch to the version for their country. If they click, they switch; if they dismiss it, they do not see it again for a year. Anyone already on the right version never notices the bar.

What changes

  • A suggestion instead of a redirect. The visitor sees a bar asking whether to switch; they are not redirected, which is better for SEO and does not bother customers who chose a version on purpose.
  • Countries for each version. For each store view you set the countries it serves; anyone already on the right one does not see the suggestion.
  • The choice is remembered. If the visitor dismisses the suggestion they do not see it again for a year.
  • Search engines are excluded. Search engines do not get the suggestion.

Who it is for

For stores with several versions (by language, country or currency) where visitors from abroad land on the wrong one.

How you set it up

Under Stores › Configuration › Magelan › Location suggestion you switch the module on and then choose the countries for each store view. The bar can optionally offer a list of all active store views.

Good to know

  • The module reads the country from a header sent by the CDN or server (for example Cloudflare), or from Magefan GeoIP if it is installed.
  • The module has no IP database of its own: without a country source (a CDN header or Magefan GeoIP) it shows no suggestion.
  • It is off by default.

Want it in your store?

Install it yourself or choose installation and configuration when you order. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
A visitor from another country gets a store suggestion, nothing is redirected by force
www.degriz.eu
The bar at the top suggests the store that matches the visitor's country
www.degriz.eu
For every store view you choose the countries it serves
User guide

See how it works, step by step.

Our guide centre shows the settings and the everyday work with this module, with real screenshots.

Installation

How to install it.

We deliver the module from our own repository, installed with Composer. We send you the user name and access key for the repository after purchase. If you prefer, we install and set it up for you.

In the root of the Magento 2 store run the commands (replace UPORABNIK and DOSTOPNI_KLJUC with the user name and access key you received):

composer config repositories.degriz composer https://www.degriz.net/konfigurator/composer/packages/composer config --auth http-basic.www.degriz.net UPORABNIK DOSTOPNI_KLJUCcomposer require degriznet/m2_georedirectphp bin/magento module:enable Magelan_GeoRedirectphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy -fphp bin/magento cache:flush

If you use the Hyvä theme, also run php bin/magento hyva:config:generate after installing and rebuild the theme CSS.

Where do I get the user name and the access key?

After the payment we e-mail you a link to create the access key. Keep the key safe: for security it is shown only once and we do not keep it in readable form. The user name (your project code) and all the commands, ready to copy, are in your account under My account > Module licences.

Lost the key? Create a new one in your account under Module licences; the old one stops working.

Technical details

Compatibility.

Just the facts.

Code
degriz_georedirect
Platform
Magento 2
Licence
One-off
Change log

Version 1.3.4 · 27 Nov 2026

  • The test country ?geo_test=XX of the page address now works on Hyva themes too.

Version 1.3.2 · 13 Oct 2026

  • The cookie description is in English with a Slovenian translation.

Version 1.3.1 · 11 Oct 2026

  • Module settings are placed in the shared Magelan tab.

Version 1.3.0 · 2 Oct 2026

  • Support for Hyvä themes: the bar sits at the very top of the page, above the header.
  • The bar now also appears on the visitor's first page, not only after a first action such as adding to the cart.
  • The option to stay on the current store no longer comes back on the next page.
  • The module registers itself for the Hyvä theme style build.

Version 1.2.2 · 17 Sep 2026

  • Crawlers get no suggestion, because the Google crawler runs JavaScript and would see the bar.

Version 1.2.1 · 16 Sep 2026

  • Added translations for the language picker bar.
  • Slovenian translations of the setting comments.

Version 1.2.0 · 6 Aug 2026

  • The dismiss cookie is registered with Swissup GDPR, which otherwise blocked it silently and the bar came back on every page.
  • Added German, Italian and Hungarian translations.

Version 1.1.0 · 5 Aug 2026

  • A test parameter for the country, meant for development and off by default.

Version 1.0.0 · 5 Aug 2026

  • First release: suggests the store view that matches the visitor's country, without a forced redirect.
After purchase

You are not left alone.

We develop and maintain the module ourselves, so you write to the people who know it line by line.

Installation

Installation and configuration are optional: choose them when you order and the price is added to the order (+ VAT). If more time is needed, we bill the rest separately.

Support

A bug that repeats on a clean Magento with the Luma theme we fix free of charge. Settings, customisations and other themes by time spent.

Updates

The licence includes 12 months of free updates for the Magento versions on the supported list.

We agree on a date after reviewing the request. User guides in the guide centre

Location-based redirect

€190 + VAT

One-off licence for one store, no subscription. Installation and configuration are optional.

After payment you get the licence and access to our private repository: immediately with a card or PayPal, with a bank transfer (UPN) as soon as we receive the payment. 12 months of free updates are included.

Write to us

Install it yourself by following the guide, or choose installation and configuration above. If more time is needed, we bill the rest separately. We agree on a date after reviewing the request.

Anže Voh, Degriz

Questions about this module?

Write to us and we will answer personally.

[email protected] · +386 40 807 231

Location-based redirect€190 + VATAdd to cart

Online store configurator

Redesigning your store or building a new one?

Put your own quote together in the configurator and see the price straight away. A few minutes, no obligation, no meeting needed.

  • Price straight away
  • No obligation
  • Straight to the developer
Open the configurator

Free and with no obligation

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.