Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Custom Regions for Magento 2

    Introduction

    E-commerce Custom Regions for Magento 2 allows the store owner to add the state or province for not defined countries in the default Magento Store.

    Tax implementation is not possible without state and zip code that’s why the merchant needs the custom region module.

    The store owner can also use the CSV file to upload the regions for multiple counties at once.

    The customer can select the address at checkout through Google Map for quick and easy shopping.

    Custom Regions Features

    • Add regions for the countries not provided by Magento 2.
    • Allow adding the Regions through form and CSV.
    • The buyer can select the address through Google Map at the time of checkout.
    • The admin can update the Regions.
    • Customers can insert the delivery address using Google Map while checkout.

    Custom Regions Module Installation

    The customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder.

    Then, you need to transfer this app folder into the Magento2 root directory on the server as shown below:

    After the successful installation, you have to run these commands in the Magento2 root directory:

    First Command:

    Second Command:

    Third Command:

    Multi-Lingual Configuration

    Now, for the multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options and select the locale as German (the language into which admin wants to translate his store content).

    Language Translation

    If the user wants to translate their module from English to German then they need to follow the path

    app/code/Webkul/CustomRegions/i18n in their unzipped Custom Regions folder and 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/CustomRegions/i18n where they have installed Magento2 on their server.

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

    Custom Region Module Configuration

    After installing the module, you will be able to see the Region Upload panel under the Stores-> Configuration-> Webkul-> Region Upload

    • Active – First of all Enable or Disable the module.
    • API Key – Then Enter the Google map API key.

    What is Google map API key?

    Google Maps API key is a personal code provided by Google to access Google Maps on this site. Google Maps is integrated with the module for the insertion of the delivery address. Now, Buyers can select the address at checkout through Google map.

    Upload Regions

    Now merchants can create or upload the regions of the countries not supported by the default Magento 2 store. This module allows the merchant to defined the regions to let their buyers select the address at checkout through Google map.

    If admin did not add the region of non defined countries then in the region list it will not show to the customer and the customer has to provide the address details manually.

    Add Regions

    Path to add regions – Sales => Upload Regions => Add Regions

    • Country – This dropdown will show the names of those counties whose state is not defined in the default Magento 2 store.
    • Region Code – Now the merchant can enter the region code.
    • Region Name – After that merchant can write the region name.

    Upload CSV

    Merchants can use the CSV file to upload the regions for multiple counties at once, follow the path to upload CSV – Sales => Upload Regions => Add Regions => Upload CSV and check the below-given screenshot for more details

    • Upload CSV: Click on upload CSV option.
    • Country: Select the country to add the province
    • Upload CSV File: Now choose the CSV file to upload
    • Submit: Then click on the submit to save the configuration.

    View Regions

    After adding the regions or uploading the CSV merchants can check all the created regions list. Furthermore, the merchant can edit or delete the created regions.

    Path to add regions – Sales => Upload Regions => View Regions

    StoreFront Functionality

    Cart Page

    The custom region module for Magento 2 enables the buyer to select the state or province on the cart page. Customers can select country, state/province and enter the zip/postal code to proceed with the shopping.

    Check Out Page

    Google Maps is integrated with this module for the insertion of the delivery address and forthwith customers can select the address at checkout through Google map to complete the buying. Check the below-given screenshot for more details:

    Customer can insert the delivery address using google map and state, zip and country will automatically get updated.

    That’s all about Custom Regions for Magento 2 Module.

    For any issue or support you can raise a ticket at support@webkul.com

    Current Product Version - 3.0.0

    Supported Framework Version - 2.0.x , 2.1.x , 2.2.x , 2.3.x

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close

    Table of Content

    Hide Index