Home » Magento tutorials » How to Add country and state Dropdown in magento admin

How to Add country and state Dropdown in magento admin

In this tutorial, we will learn how to add country and state Dropdown to Magento Admin page. There are 2 steps:

magento country list drop down

Step 1:

Open your form which is in Yournamespace/Modulename/Block/Adminhtml/Modulename/Edit/Tab/Form.php then add below fields

Step 2:

Now Create State Action in modulenamecontroller.php file which will be like this

 

 

About Gareth

avatar
Gareth is an editor at Tutorial Magento. His special hobby is to share magento knowledge and experience with everyone.

One comment

  1. avatar

    Using the code country list is showing after selecting a county states not appearing in list

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top