cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Add New Shipping Address On Checkout Page - How to Make Country Unchangeable ?

Magento2 Add New Shipping Address On Checkout Page - How to Make Country Unchangeable ?

Hello Community ,

Hope you all are safe. 

While adding new shipping address on checkout page I don't want to allow the user to change the country. it should remain as it is. 
I need a solution based on code. It is not allowed to configure it at backend. So How Can we achieve this ? 

Can anyone quickly help in this ? 
Thanks in advanced !
country.jpg

1 REPLY 1

Re: Magento2 Add New Shipping Address On Checkout Page - How to Make Country Unchangeable ?

Hello @maratheprash ,

 

That means you need only one country on your site 

you can do following settings,

In Admin   Store->Configuration->General->General->Country Options>Allow Countries

 

select the country you want to set here 

This will show only one country and the dropdown value is unchangeble

 

Thank you.

problem solved?click kudos and accept as solution.