Questions tagged [country-regions]
The country-regions tag has no usage guidance.
98
questions
0
votes
0
answers
27
views
Magento 2.4 how to create a custom region select at checkout
Good morning, does anyone know how I can create a custom selection in the checkout of the type "Magento_Ui/js/form/element/region" something like the default selection of "region" ...
0
votes
0
answers
99
views
Magento 2.4.6: How to create country attribute for custom registration form in
How to create country attribute dropdown for customer registration form. I have added the country attribute in eav_attribute table using the following code:
vendor/module/Setup/InstallData.php
<?...
0
votes
1
answer
106
views
Is it possible to get Country Name using Select Query in Magento 2 DB?
I am trying to get the list of customers from the database directly using Mysql Query.
SELECT ce.email As Email, ce.firstname As Firstname, ce.lastname As Lastname,
COALESCE(NULLIF(cae.country_id,''), ...
0
votes
1
answer
58
views
Magento 2 How can I add State and Country attribute for customer account information in AdminSide?
How can I achieve State and Country field functionality in Admin under customer Account Information?
In the customer account information section, how to add country and state fields and state is ...
0
votes
0
answers
21
views
Adding new address Shipping Region ID is missing in checkout after upgrading from Magento 2
Shipping Region ID is missing in checkout after upgrading from Magento 2.4.2 to Magento 2.4.5.
Existing address no issue but if I am adding new address got an error.
https://prnt.sc/6xWT69vefIN4
0
votes
0
answers
51
views
How to restrict the Shipping Country to United States only?
Magento 2.4.2-p1
Amasty extensions
Smartwave Porto theme
As a gift shop in the United States, I am only able to ship within the United States yet the drop-down in the Shipping address field contains ...
0
votes
2
answers
252
views
Magento2: Country Query is giving the duplicate of regions
I am using the country query to retrieve information about a specific country. When I pass the country code as AU, in the available regions I am getting duplicate values as well as the code and name ...
1
vote
0
answers
24
views
Region Text is not passing along with form
I have created magento admin form using Uicomponent with country and state everything working fine except region value is not passing along with form.This happens only when there is select box ...
1
vote
1
answer
136
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 ...
0
votes
1
answer
12
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 ...
0
votes
2
answers
739
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&...
0
votes
1
answer
791
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 ...
0
votes
1
answer
764
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
1
answer
352
views
Country and State not showing in the checkout page
Country and State not showing in the checkout page for magento 2.4.2
http://prntscr.com/12kf489
http://prntscr.com/12kf7cc
Can someone help me to solve this issue?
Thanks!
0
votes
1
answer
76
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 '...
1
vote
0
answers
205
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/...
3
votes
2
answers
2k
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
2
answers
205
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
1
answer
75
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
0
answers
269
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
1
answer
1k
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 ?
1
vote
0
answers
201
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 ...
-1
votes
1
answer
477
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
1
answer
710
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
0
answers
103
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
1
answer
574
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
4
answers
2k
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
1
answer
395
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.
...
1
vote
1
answer
2k
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
2
answers
326
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
2
answers
2k
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
1
answer
3k
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
1
answer
349
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
1
answer
5k
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
2
answers
794
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
0
answers
300
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
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($...
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/...
0
votes
0
answers
136
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
1
answer
2k
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
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
1
vote
0
answers
207
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
1
answer
37
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
0
answers
197
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
0
answers
210
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
1
answer
716
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
1
answer
70
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
2
answers
1k
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 ...
3
votes
1
answer
15k
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
1
answer
217
views
Magento list states and cities according to website specific for India
How to list states and cities according to website specific for India