How to Install Address Field Converter in Magento 2

Hello Everyone,

In this blog, we will learn how to install an Address Field Converter in Magento 2.  

This extension allows the store owners to add additional or edit existing regions/ states and cities to the Magento address and also allows the admin to convert the text field attribute to a dropdown attribute in the checkout address [shipping address & billing address] and customer address from my account on the front end.

Without wasting your time, let us guide you straight away. Follow the easy steps below to install and configure an Address Field Converter extension. 

 Why Magecurious Address Field Converter? 

  • Enable or disable from Magento admin.
  • Import new cities for specific regions.
  • Import new regions for specific countries.
  • Edit existing & cities.
  • Edit Existing Cities.
  • Convert text field to Drop-Down field on the cart page, checkout page & customer address from my account
  • Compatible With 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x

Steps For Install Address Field Converter In Magento 2. 

STEP 1: Extract the downloaded extension package in your Magento root folder using FTP(File Transfer Protocol) Tools. For verification of the root folder, you can see some folders inside the Magento root folder like app, bin, lib, PHP server vendor, etc.

STEP 2: Next Need to run some Magento commands to install the extension in your system, so connect with your server via SSH go to the Magento root folder (e.g: cd /var/www/html/magentp243), and run the below commands one by one.

  • php bin/magento setup: upgrade 
  • php bin/magento setup:static-content:deploy-f  
  • php bin/magento indexer: reindex  
  • php bin/magento cache: clean  
  • php bin/magento cache: flush  
  • chmod-R 777 var/ pub/ generated/

STEP 3: If all your commands run successfully then login to your system Admin Panel and go to Store > Configuration, if you see a new Tab in the left sidebar with the MageCurious Logo it means the extension was installed successfully.

Steps for connecting Address Field Converter with Magento 2. 

STEP 1:-  To Configure Extension go to Stores > Configuration > MageCurious Tab > Address Field Converter. 

STEP 2:- In General Configuration: 

  • Enabled: Select Enable to enable the module. 
  • Import City CSV: Download a sample CSV for the import City and Import City from here. 
  • Import Region CSV: Download a sample CSV for the import Region and Import Region from here

Extension Features:  

Import New Cities for Specific Regions

  • Now go to Stores> Configuration > MageCurious Tab > Address Field Converter and Import Cities for Specific Region using CSV. 
  • Example: I want to add a new city “Ahmedabad”, “Surat”, “Vadodara”, “Rajkot”, “Jamnagar”, and “Junagadh” for Gujarat as shown below. 
  • First, go to the Address Field Converter -> Region List and find the “ID” from a list using the filter of country India and Region Name Gujarat.
  • Now download the sample file from Stores> Configuration > MageCurious Tab > Address Field Converter add the data as per the below screenshot of CSV upload the CSV and save the configuration. 
  • Note: If you want to update the existing City then you must add the “entity_id”. 

Now after saving the configuration, you can see a full list of cities from Address Field Converter > City List as shown as below. 

The city list dropdown at the customer adds and edits the existing address as shown below.

City list dropdown at Checkout Shipping step as shown below.

City list dropdown at Checkout Review & Payments steps as shown below. 

Import New Region for Specific Country 

  • Now go to Stores> Configuration > MageCurious Tab > Address Field Converter and Import State for Specific Country using CSV.
  • Example: I want to add a new region “Kabul”, “Kandahar”, and” Kapisa” for Afghanistan as shown below. 
  • Now download the sample file from Stores> Configuration > MageCurious Tab > Address Field Converter and add the field as per the below screenshot of CSV. and upload the CSV and save configuration.
  • Note: If you want to update the existing City then you must add the “region_id”. 
  • Now after saving the configuration, you can see the full list of cities from City Region Manager -> City List as shown below.

The imported region list of Afghanistan is now shown below as well as the City list on all pages. 

Final Thought 

This was the easiest way we told you in this blog. This is how you can install an Address Field Converter in Magento 2. Hope you liked the blog.

So quickly go to the comment box and tell me how you like this blog.

Stay tuned to our site to get new updates on Magento.

Thanks for reading and visiting our site.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Reply

Your email address will not be published. Required fields are marked *