Questions tagged [country-regions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 views

Table Rates Shipping - UAE States Code issue

I am adding Custom shipping rates according to state of UAE in Table rates shipping method. But getting an error because region or state is incorrect. anyone have idea which is correct region/state ...
user avatar
0 votes
1 answer
8 views

Turks and 2 Caicos Region ID

One of the customer has the country and state details as below Postal Code-TKCA 1ZZ City-PROVIDENCIALES State-TCA Country-TCA County-TCA I have fixed by assigning country id as TC and region ...
user avatar
0 votes
2 answers
104 views

load region by country multi select in ui component magento 2

In the Ui-component of Magento 2, I see that we can do this to load region by country. <fieldset name="delivery_area" sortOrder="90"> <argument name="data&...
user avatar
  • 1,178
0 votes
1 answer
310 views

Region select not showing in checkout after upgrade to Magento 2.4

Are in the process of upgrading from M2.3.5 to the current version of Magento - 2.4.3 However, after having done so the Region select dropdown no longer appears in the checkout (on either billing or ...
user avatar
0 votes
2 answers
374 views

country_of_manufacture issues with names in Magento 2

I am having issues with country_of_manufacture attribute. I recently made a copy of production site to prep our new server for migration from old server. The issue comes in when I do import testing - ...
user avatar
0 votes
1 answer
158 views

Country and State not show in the checkout page

Country and State not show in the checkout page for magento 2.4.2 http://prntscr.com/12kf489 http://prntscr.com/12kf7cc Someone help me solve this issue? Thanks!
user avatar
0 votes
1 answer
26 views

Please enter a valid region error for regions with special characters

I'm trying to import customer addresses. If the region has a name with accents, Magento v2.3.6 won't recognize it. Example: Country code 'RO', region 'Timiș' - doesn't work Country code 'RO', region '...
user avatar
1 vote
0 answers
118 views

Magento 2.3.6: How to change shipping address country name of Taiwan instead of Taiwan, province of China?

I am using Magento2.3.6. I want to change shipping address country name of Taiwan instead of Taiwan, province of China. How can I update for it? I tried to update in app/code/Magento/Config/i18n/...
user avatar
  • 23
2 votes
2 answers
906 views

Add new nation into nation's list in Magento 2.3.5

I want to add a new country Northern Ireland with the country code XI in Magento 2.3.5 Admin. any idea for this? I already tried with this - Add new country in default country dropdown in Magento 2.3....
user avatar
  • 1,873
0 votes
2 answers
82 views

Change name of country in Magento 2

I tried for hours.. Even changed vendor files (from Zend framework). How in this world can I change the country name "France", in address, to "France métropolitaine", in Magento 2? ...
user avatar
  • 45
0 votes
1 answer
27 views

Get Current Country Code Magento 1

I am trying to get Current Country Code Magento 1 using below code $currentCountry = GeoIP_Core::getInstance(Mage::getBaseDir('media') . DS . "geoip" . DS . "GeoLiteCity.dat", ...
user avatar
0 votes
0 answers
136 views

Region is not Updating while Setting Country Name Programmatically. Magento 2

I've created Simple Form where I've set default country Name n Region like <td> <label>Country</label> <div class="field ...
user avatar
  • 1,434
0 votes
1 answer
249 views

How can I add Country and State dropdown in Custom admin form?

I want to add country and state drop down in custom admin form. How can I do that ?
user avatar
1 vote
0 answers
102 views

How to change currency on country change in shipping form in the checkout page magento 2.3

I want to update my checkout cart summary when the user selects the country from shipping address, cart price and currency change according to the country he selected in the shipping address. How can ...
user avatar
  • 1,967
-1 votes
1 answer
190 views

How to set region value in checkout page?

I am following this guide to build a zipcode lookup implementation. I try to populate region, city and street data based on zipcode. this.region().value(regionValue); this.city().value(cityValue); ...
user avatar
0 votes
1 answer
356 views

Region field is not working on country change

I am facing an issue in magento 2.3.4.Whenever I tried to change country, region field hidden and gives required error. Therefore, Place order is not happening. If i have not changed country and just ...
user avatar
  • 41
1 vote
0 answers
52 views

How to change the country code for a specific country

is it possible to change the country code for a specific country? DE -> GER Thanks in Advance!
user avatar
  • 11
0 votes
1 answer
353 views

Magento2: How to add Country and State field at backend in creating customer under the Account Information tab?

I want to add country and State field at the backend in creating customer under the Account Information tab. Based on the Country selected the State should filter in the dropdown. Any help would ...
user avatar
  • 925
3 votes
4 answers
1k views

Country options are not displayed when editing user address Magento 2.3.3

I have such a problem on Magento 2.3.3 I checked this logic on stock Magento 2.3.3 and it also appears there. Choose a 2-3 allowed countries. Then go to All Customer -> Customer Address Edit Form in ...
user avatar
0 votes
1 answer
152 views

Magento 2 Update Ragion/State in Database

I found some regions in a specific countries are obsolete and new ones are missing. I know how to add region by installData.php in a custom module but i dont know how to remove the obsolete ones. ...
user avatar
  • 1,198
0 votes
1 answer
865 views

How to get only one Specific Country's States/Province in dropdown?

I'm working on Magento 2.3.2, I override a Shipping Method file which is system.xml for adding custom fields. Here it is: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user avatar
0 votes
2 answers
251 views

Magento 2: Add CSS class for country input in address?

In the address section at My account dashboard, there is a field called Country. I want to change the CSS for that country's input. Where do I need to add CSS class in order to change it? <div ...
user avatar
  • 480
0 votes
2 answers
1k views

Magento 2 How to add country and state dropdown in admin form? [duplicate]

I need to add Country and State Dropdown in Magento 2 admin form. Please help me.
user avatar
  • 934
0 votes
1 answer
2k views

Magento 2 How to add all country regions in database?

I checked directory_country_region in the database there is no region of the United Kingdom, I need all region of United Kingdom. Is Magento provide the sheet of all country regions or from where I ...
user avatar
  • 934
0 votes
1 answer
229 views

magento 2: how to display region name in dropdown

Hi to all I added Italian region name in magento db by SQL in directory_country_region as follows: INSERT INTO directory_country_region(country_id, code, default_name) VALUES ('IT', 'TO', 'Torino'); ...
user avatar
2 votes
1 answer
4k views

Magento 2: Update Region/States dropdown for Specific Country

I want to add only Nigeria as the option in Country Dropdown, and the nigerian states in the states/province dropdown. How to do that. I tried something through Admin panel, when i found these issues ...
user avatar
  • 700
0 votes
2 answers
574 views

Add Country field in custom Checkout form in Magento2

I added new step on checkout and I created a form for this new step. How can I add Magento built-in Country drop down field and state/province drop down field to my custom checkout form?
user avatar
1 vote
0 answers
216 views

How to show state dropdown in phtml file in magento2

I want to show state drop down in phtml file in magento2 I have a country code <?php $countryBlock = $block->getLayout()- >createBlock('Magento\Directory\Block\Data');?> &...
user avatar
1 vote
2 answers
4k views

Magento 2 - Get country name from country code

I want to get country name from country code, in Magento 1.9 I use the code like this to get country name: $countryCollection = Mage::getModel('directory/country_api')->items(); foreach($...
user avatar
  • 2,066
2 votes
2 answers
1k views

Magento2: How to Modify DropDown Country options on the fly?

I need to create a restriction for the Billing [Country_Id] options Based on a new Config. Setting that Pairs a Customer-Segment with specific Billing Country options. I found: vendor/magento/...
user avatar
0 votes
0 answers
94 views

How to redirect my website as country wise in magento2

Hello i have multiple store for my site,like us and uk when some one from US visit my site it will directly redirect to ex: www.demo.com/us store same for uk how to do in magento2
user avatar
  • 27
3 votes
1 answer
1k views

Magento 2 State Option

Our client wants us to make the state field as an optional one in the Checkout. In order to do this, we have removed all the countries from the required state option and set to "Yes" for allowing to ...
user avatar
  • 1,124
0 votes
2 answers
2k views

How to get the country code based on country id in magento 2

I wish to get the country code based on country id in checkout page . I have the country id, How do i pass it to get country code in magento 2
user avatar
  • 2,398
1 vote
0 answers
152 views

Same content (language) for multiple countries (store views)

I'm trying to implement an e-commerce site (using Magento 2) that has the following requirements: be available in N countries (eg http://example.com/country_code/ ) with X languages share the same ...
user avatar
  • 111
0 votes
1 answer
33 views

Mage 1.9.2.4 1: 1 website, 1 catalog, multiprice, multicurrency

I read many many answers. Many have similar questions, but at the end the solution seems to me to build many websites. My need: Magento 1.9.2.4 to implement 1 website (eg brand.com) with 1 catalog of ...
user avatar
2 votes
0 answers
164 views

Magento 2 Region list not filter for default country on billing address for first time

There are many country region available in region list. The issue arises first-time page load on the billing address of checkout. Even default country has been set up the USA, All region list has been ...
user avatar
  • 1,442
2 votes
0 answers
181 views

Changing country name (Ireland to be Republic of Ireland) in Magento 2

I need to change Ireland to the Republic of Ireland. No matter what I change and clear the caches it does not update I have tried editing vendor/magento/zendframework1/library/Zend/Locale/Data/...
user avatar
  • 2,429
2 votes
1 answer
577 views

Can't checkout when remove country field

I tried to hide the country field in the checkout page and billing page. Here's my code : <item name="region_id" xsi:type="array"> <item name="visible" xsi:type="boolean">false</...
user avatar
2 votes
1 answer
67 views

Adding new regions won't persist

I followed an example and created a custom extension that would add some regions to the directory_country_region & directory_country_region_name tables. I want to make sure that the data I write ...
user avatar
6 votes
2 answers
864 views

How to validate postal code by country id?

In Magento checkout there is a postal code verification for each country, now I want to implement it in different module for different case, how to do it if I already have the country id and postal ...
user avatar
4 votes
1 answer
12k views

Shipping Error. Invalid value in Region ID field

Just testing my shipping for a logged-in customer on Magento 2.2.5 When I come to the checkout I get the following error. Please check the shipping address information. Invalid value of "183" ...
user avatar
  • 360
0 votes
1 answer
195 views

Magento list states and cities according to website specific for India

How to list states and cities according to website specific for India
user avatar
  • 1,700
0 votes
0 answers
2k views

Region id is required field error

In my account page after fillup all form fields, getting an error "regionid is required field" but I can't find out actual reason why this error comes every time. if anyone has idea please reply me.
user avatar
  • 1,597
0 votes
1 answer
999 views

Magento 2.2.4 Change Country Names

I am wanting to change the names in English for countries in Magento 2.2.4. I tried looking through the database but it appears their full name is not listed there, just country codes. For my use of ...
user avatar
  • 47
0 votes
1 answer
509 views

How can I set the minimum order amount from a certain country

I see how I can set the minimum order for all customers, but how can I do this for customers for a certain country, for example France? In the promotions tab I can set a promotion for a certain ...
user avatar
  • 168
0 votes
1 answer
55 views

i want change language according to access point

hi i want to change language according to country visitors means if any user access my website in us than price show in dollar and another access in india than price shows in INR. please help me how ...
user avatar
  • 1
4 votes
4 answers
3k views

Updating country name in magento 2

I need to change the name of country in magento store e.g. United Kingdom needs to be changed to Great Britain. How can I achieve this? I tried looking at the following tables ...
user avatar
  • 308
0 votes
1 answer
687 views

How to override country drop-down in checkout page magento 2?

I want to override country drop-down in custom checkout page. In further i want to add my custom function on change of country drop-down.
user avatar
3 votes
2 answers
3k views

How to add new country in country dropdown in magento2.2.1 [duplicate]

I want to add new country and its region in magento2.2.1 so it can be shown throughout the site(including backend countried dropdown, checkout at frontend). I have tried this link of magento1 but did ...
user avatar
1 vote
1 answer
2k views

How to load shipping methods on country and postcode change?

I have written a custom shipping module, then I want to change custom shipping methods when country and post code changes. I heard there is a method call js mixin. any one have idea about it, need ...
user avatar
  • 557