Questions tagged [country-regions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
102 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 - ...
0
votes
1answer
20 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!
0
votes
1answer
11 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 '...
0
votes
0answers
34 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/...
0
votes
0answers
27 views

How to set default state value in checkout in magento2?

How to set default state value in state field in checkout page same as country in magento2?
1
vote
1answer
372 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....
0
votes
0answers
15 views

Country specific products

I have a multi-vendor platform, some of which only sell products to specific countries. I do not want to show products to clients that is not available in their countries. How can I achieve this?
0
votes
0answers
8 views

Incomplete shipping info during checkout

We have an intermittent issue where shipping info is missing the ship to name or province. Less than 5% of our order is missing one of the lines. Ship-to name isn't a big deal, but when the province ...
0
votes
0answers
16 views

How to remove some states from 'GetRegionHtmlSelect()'?

I have implemented 'GetRegionHtmlSelect()' in my custom module. It shows dropdown for US states, is there any way to remove some states options from the dropdown?
0
votes
2answers
40 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? ...
0
votes
1answer
20 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", ...
0
votes
0answers
57 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 ...
0
votes
1answer
27 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 ?
0
votes
0answers
32 views

Get Country code during checkout in magento 2.3.2

I want to customise my order number in magento 2.3.2 during checkout. I want to add Country code as a prefix to the order number. How can i get the country name / country code from where the customer ...
1
vote
0answers
37 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 ...
0
votes
0answers
39 views

Few product restrict for specific countries/state : M2

I want to restrict some products to show in a particular country/state, Not all products. Can you please suggest me how to achieve it? Thanks in advanced!
-1
votes
1answer
38 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); ...
0
votes
1answer
109 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 ...
1
vote
0answers
31 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!
0
votes
1answer
156 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 ...
3
votes
4answers
966 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 ...
0
votes
1answer
60 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. ...
0
votes
1answer
408 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:...
0
votes
2answers
184 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 ...
0
votes
2answers
941 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.
0
votes
1answer
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 ...
0
votes
1answer
140 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'); ...
2
votes
1answer
3k 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 ...
0
votes
2answers
364 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?
1
vote
0answers
165 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');?> &...
1
vote
2answers
3k 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($...
2
votes
2answers
801 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/...
0
votes
0answers
85 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
3
votes
1answer
910 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 ...
0
votes
2answers
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
1
vote
0answers
128 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 ...
0
votes
1answer
30 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 ...
2
votes
0answers
142 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 ...
2
votes
0answers
167 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/...
2
votes
1answer
458 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</...
2
votes
1answer
65 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 ...
6
votes
1answer
669 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 ...
4
votes
1answer
8k 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" ...
0
votes
1answer
178 views

Magento list states and cities according to website specific for India

How to list states and cities according to website specific for India
0
votes
0answers
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.
0
votes
1answer
944 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 ...
0
votes
1answer
421 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 ...
0
votes
1answer
54 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 ...
4
votes
4answers
2k 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 ...
0
votes
1answer
608 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.