Skip to main content

USER GUIDE MAGENTO 2 GEOIP EXTENSION

 Magento 2 GeoIP(Adobe Commerce) is a useful extension that detects the customers’ location based on their IP addresses. It automatically redirects the customer to the relevant store view as per their country.

Magento 2 GeoIP extension basically helps out the customer by making a personalized user experience for them. This happens by switching to the relevant store view and currency as soon as they visit the website from a different location.

After detecting their IP address as configured by the admin of the respective website.

This is a must to have feature to assist store owners to bring a better experience for customers during their shopping journey.

Note – 

Searching for an experienced
Magento 2 Company ?
Find out More
  • Geocode and Reverse Geolocation services are used in our module.
  • To have these services you must have the Google API Key to make use of this extension. You can generate one by clicking  here
  • You need to enable billing for your google account project under which the API Key is created. For more information please visit  here
  • This module uses http://ipinfo.io/ third-party services to trace user location from IP Address.
  • If the API hit request on the website exceeds the allowed limit then the customer will be required to purchase the API key

Watch the below video tutorial to understand the extension workflow:

 

Features

  • Enhance user experience on shopping sites by allowing customers to purchase from their relevant store views.
  • Auto-detect visitor’s location via IP address.
  • Automatically redirect users to the relevant store view.
  • Allow/Restrict customers to switch store views.
  • Allow blocking customers by their country’s IPs
  • Redirect customers to a specific URL on viewing some restricted Product, Category or URL.
  • The admin can add a global restriction URL at which the customers will redirect if the store view is not mapped with any of the countries.
  • Switch the store view & currency based on the visitor’s location.
  • The extension is compatible with the Hyva theme.
  • GraphQl has been implemented for the extension.

Installation

The installation is quite simple just like the standard Magento 2 extensions.

From Webkul Store

#1 Download Module

Firstly, you need to log in to Webkul Store, go to My Account>My Purchased Products section.

Then verify and then download and extract the contents of this zip folder on the system.

#2 Upload Folder

Once the module zip is extracted, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

installation

#3 Run Commands

After uploading the module folder, you need to run the following commands in the Magento 2 root directory:

php bin/magento setup:upgrade
Explain Code
Powered By
php bin/magento setup:di:compile
Explain Code
Powered By
php bin/magento setup:static-content:deploy
Explain Code
Powered By
php bin/magento indexer:reindex
Explain Code
Powered By
php bin/magento cache:flush
Explain Code
Powered By

Configuration For Multi-lingual Support

For multilingual support, the admin will navigate through Store > Configuration > General > Locale Options. Select the locale as English (the language into which the admin wants to translate his store content).

magento2-local-configuration

Magento 2 (Adobe Commerce) GeoIP Extension – Translation

 

If a user wants to translate their module from English to German, they need to follow the path app/code/Webkul/Geoip/i18n in their unzipped folder. The user will get a CSV file with the name “en_US.csv”.

Now they will rename that CSV as “de_DE.csv” and translate all right side content after the comma in the German language.

After editing the CSV, save it and then upload it to the path app/code/Webkul/Geoip/i18n where they have installed Magento2 on the server.

The module will get translated into the German Language. It supports both RTL and LTR languages.

Mpsplitorder-1-1Mpsplitorder-2-1

The user can edit the CSV like the image below.

Marketplace Split Order For Magento2 Translation

Admin Configuration

After the successful extension installation, The admin navigates through Stores > Configuration > GeoIP > GeoIp Settings to configure the extension.

magento2-geoip-configuration

The admin needs to make some changes in the general settings of the extension to set it up.

  • Enable:- The admin can Enable or Disable the extension.
  • Google API Key:- Enter Google API Key here as the Google API is used in the module for the geolocation.
  • IP Info Access Token: To get an access token, please visit here: http://ipinfo.io/

Note: For Google API Key, Please visit

  • Store View Change:- Allow or Restrict customers to change their store view from the store view change.
  • Currency change:- Allow or Restrict customers to change their currency from the Currency Change option.

Global IP Redirection –

If the Admin didn’t set any GeoIP redirection based on category, product or URL then the global URL will work for redirection.

Redirect Popup Setting –

The admin can set the popup message for the customers while redirection is being processed. Thus, the same message will be displayed on the front end.

webkul-magento2-geoip-customer-end-popup-img-6

Redirect Users to Relevant Store View based on their IP address.

After the configuration, if the admin has allowed the customers to change their store views and currency as per the Location Change & Currency Change option.


Originally Published: https://webkul.com/blog/magento2-geoip-plugin/

Comments

Popular posts from this blog

Why Adobe Commerce Cloud is best suited for Headless eCommerce

  Headless architecture is trending now as it is considered the future of eCommerce. In this article, we will cover some points to tell Why Adobe Commerce Cloud is best suited for headless eCommerce?  Magento 2 is the most popular CMS for eCommerce Development. Also, it provides many features and tools which make the headless implementation much easier from developing from scratch. What is Headless eCommerce? Headless  is an approach where you separate the frontend and backend of the eCommerce Website. It means that your customer experience platform ( UI & UX) is independent of your Content Management system.  Today, when eCommerce is moving towards the Omnichannel approach the role of headless eCommerce becomes crucial. With its use, the shop owner can provide a more flexible, speedy, and personalized experience to their customers. Why Adobe Commerce Cloud is best for Headless eCommerce? Adobe Commerce Cloud provides many tools that make the head...

Marketplace Quote System for WooCommerce

  WooCommerce Marketplace Quote System Plugin provides the functionality to the seller of the marketplace to allow the customer to quote their products. The seller can enable the quote system for their products. After that, a customer can send a quotation request of the products. This plugin is very useful for order the seller’s products in bulk. Using this plugin a customer can also communicate with the seller for their queries. Admin of the marketplace can also involve between the buyer and seller conversation. The admin can also change the status of the customer quote. Marketplace Quote System for WooCommerce is an add-on of Webkul WooCommerce Multi Vendor Marketplace Plugin. To use this plugin you have to install   Woocommerce Multi Vendor Marketplace  first. Highlighted Features Customized Pricing With this module, the admin/seller can provide the unique quoted price to the buyers. Bulk Product Purchase The customer can order product quantity in bulk ...

Aureus ERP: Your Open Source Business Solution

  Aureus ERP: Your Open Source Business Solution Aureus ERP is an open source ERP platform built on Laravel that helps make your business operations easier and better. Whether you need to handle projects, employees, inventory, or purchasing, AureusERP provides a flexible, safe, and easy to use solution that fits the specific needs of your business. AureusERP gives you a flexible, safe, and user friendly platform designed for your business’s specific needs. Why Choose Aureus ERP? Aureus ERP is not just your average ERP solution. It’s built on the Laravel framework, which makes it strong and safe, perfect for dealing with the complicated needs of today’s businesses. Now, let’s explore the features that make AureusERP unique. 1. Free and Open Source: Aureus ERP is open source, which means you can use it for free and customize it however you want. 2. Built on Laravel: Aureus ERP uses Laravel, a strong PHP framework that is famous for being secure and fast. This ensures tha...