Skip to main content

Questions tagged [countries]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14 votes
6 answers
12k views

How add indian State?

How to add Indian State lists to the corresponding country?
remo's user avatar
  • 143
4 votes
2 answers
3k views

Limit country drop down input field Magento 2

Currently my magento store shows all the country in shipping, billing, and register customer form. is there a way to show only some countries that i want ?
Hunter's user avatar
  • 1,484
4 votes
1 answer
217 views

Remove country form payment block

I want to remove country from Checkout payment block. This was fill by knock js but i don't know how to remove this.
Ajay Patel's user avatar
  • 1,513
4 votes
2 answers
5k views

How to get Country ID from Country Name in Magento1.9.2.4?

I want to get country_id from the country name in Magento, Please suggest how can I achieve this. I found these database tables but they are not helpful: directory_country directory_country_region ...
Yogita's user avatar
  • 784
4 votes
1 answer
5k views

magento 2 : Get country from IP address

How to get the name of the country from the ip address in magento 2. I think it will require me to use geoip, but I don't know how to do it. Any help?
User0434's user avatar
  • 1,155
4 votes
2 answers
312 views

xml of config is incomplete (countries not shown)

I'm having problems with showing the countries in my magento website. When you want to give in you're billing address it's required to give in your country. The problem is that the countries are empty ...
nielsv's user avatar
  • 153
4 votes
1 answer
2k views

Ship to certain countries but allow any country in billing address

My company only ships to a few countries but we would like to allow billing addresses from additional countries we do not ship to. How can I change the countries available in the dropdowns for ...
Peter's user avatar
  • 41
4 votes
1 answer
540 views

Magento 2: How to change country name?

I changed magento2 country name but didn't worked. I changed in the below file: File: vendor/magento/zendframework1/library/Zend/Locale/Data/xx.xml How to change the country name ?
ben's user avatar
  • 41
3 votes
2 answers
4k views

How to get selected Allowed country list in Magento 2..?

I need to get the the Selected Allowed Countries in a phtml file.. How can i get that ?
SUBIN CHANDRAN's user avatar
3 votes
1 answer
1k views

Magento 2 Country Name not get translated when using countryFactory

My Magento site have about 10 different websites and one for each country. I have set the correct Locale corresponding to each country (storeview). I'm getting Country Name by using countryFactory, ...
Magento Learner's user avatar
3 votes
2 answers
1k views

Change country name in magento 2.2 [duplicate]

I want to change a country name in magento 2.2.6. Say I want to change united kingdom to 'great britain'. All the countries are stored in a xml file at location /vendor/magento/zendframework1/...
Rajeev Singh's user avatar
2 votes
2 answers
3k views

Programmatically Export Sales order customer details to excel format

I tried to export sales order customer details, its working fine, but i want customer country code(country name) not id. below i mention my full code. <?php require_once("app/Mage.php"); Mage::app(...
sathya's user avatar
  • 421
2 votes
1 answer
1k views

Magento 2.3.3: Creating customer address in admin shows no countries or wrong countries in dropdown

I have just one country allowed in configurations. If I try to create new address for customer in admin, the country dropdown does not show any countries, not even one. I can't save the address, ...
Webninja's user avatar
  • 1,593
2 votes
1 answer
1k views

Limit Orders to a specific country

I have changed the Allowed Countries within Magento to only show United Kingdom, however, we only want to accept orders for the UK Mainland, which excludes Ireland (the UK includes Scotland, Northern ...
Karl's user avatar
  • 311
2 votes
1 answer
882 views

Adding new countries to the possible delivery regions

In terms of delivery, I am trying to split up the United Kingdom into its containing countries, England, Northern Ireland, Scotland and Wales. Each country has different bank holidays and therefore ...
Richie's user avatar
  • 123
2 votes
1 answer
2k views

Remove certain countries from country dropdown in onepage checkout while in Shipping Information part only

I wanted to remove certain countries from the 'countries dropdown' in magento onepage checkout at the section 'shipping information'. It is to be noted that Billing information will have all the ...
Anurag Khandelwal's user avatar
2 votes
1 answer
460 views

Owebia Shipping selected country shipping list

Owebia Shipping implement in my store. how i disable country which i not want to shipped item. there are no any selection for specific country selected list. i want to ship item only in 50 country , ...
Pratik Kamani's user avatar
2 votes
0 answers
541 views

Allow countries for websites is not working

I'm trying to configure 2 websites allowing only some countries for each website. For test I'll only allow "spain" for one website and "USA" for the other. I'm using the VM of bitnami with Magento 2....
Marc Pont's user avatar
  • 1,453
2 votes
0 answers
254 views

Load SHORT country names

I need to change the name value from lib/Zend/Locale/Data/de.xml I have there two lines: <territory type="HK">Sonderverwaltungszone Hongkong</territory> <territory type="HK" ...
Bernhard Prange's user avatar
2 votes
1 answer
225 views

Possible to have two different checkout processes (and payment processors)?

I've been tasked with creating a checkout process for a country other than the one we normally do business in. This other country has a completely different process for CC payments, so I'm going to ...
Anthony F.'s user avatar
1 vote
1 answer
3k views

How to get country dial code for telephone number in Magento 2?

I am getting data of country code and ID and name from Magento\Directory\Api\CountryInformationAcquirerInterface using getCountriesInfo function. Like this { "id": "EG", "...
Aditya Shah's user avatar
  • 7,617
1 vote
1 answer
671 views

Restrict Cash on delivery based on Country under shipping method

I want to restrict COD based on country we select under billing address in checkout page
Baby in Magento's user avatar
1 vote
1 answer
1k views

sql query for shipping countries from my sales order

I need to write a SQL query to get all countries where we have shipped al orders. Which table has all sales order countries? I am not able to find all the countries.
summu's user avatar
  • 847
1 vote
1 answer
1k views

Restrict products by override the function isSalable()

there are some products which could only shipped to specific countires. I created an attribute to set allowed countries for each product. In frontend the cart button should be hidden and a info ...
user3684098's user avatar
1 vote
1 answer
820 views

Magento 2 Country Restriction on checkout page shipping address

I am working in Magento-2, In my requirement, I want to show particular country on checkout page shipping address country drop-down, this only applicable for the shipping address form section, in ...
senthil's user avatar
  • 1,729
1 vote
1 answer
518 views

Magento 2 Allowed Countries Admin Issue

Magento ver. 2.3.3 Choose a few allowed countries. Then go to Customer Address Edit Form in Admin area. Country dropdown is not as we expected. If I just use 1 country none will show up if you ...
krybbio's user avatar
  • 1,258
1 vote
1 answer
553 views

SOLVED: Tax zones limitation -> Puerto Rico

Context : Magento CE2.2.0 I have to set up the following tax rules: customer address in | B2C | B2B ----------------------|---------|--------- France | VAT 20% | VAT 20% Euro ...
nicolallias's user avatar
1 vote
2 answers
3k views

Get customer billing address country short code (ISO Code)

How can I get the country short code (ISO) of the billing address of a logged in customer. Can anyone help? Thanks!
Self Diagnostics's user avatar
1 vote
0 answers
53 views

switch store view with select country in checkout / cart

I would like to trigger the store view to change according to the selected country in cart and checkout in Magento 2.4.3 Does anyone do have a clue if or how this is possible? Thanks
guest123's user avatar
1 vote
0 answers
25 views

Magento 1.9 multi countries multi langues

I want to configure magento to support multiple countries and languages without creating stores for countries only stores by language knowing that a language can belong to several countries: Example: ...
Majdi Riahi's user avatar
1 vote
0 answers
105 views

How to call my custom countries dropdown list in magento2

I need to call my custom countries dropdown list in magento2 checkout page. how to replace the default to my custom dropdown. thanks in advance..
venkata prasad's user avatar
1 vote
0 answers
237 views

Magento 1.9 auto select country

We only allow 1 country in our Magento store. Now we load on a custom module the country selector, but this does not select the only country as default selection. It currently show a select box with ...
JGeer's user avatar
  • 1,420
1 vote
1 answer
331 views

Magento 1.9 . 3 .8 : merchant countries drop-down list dosent have jordan

Merchant Country (jordan) Not Present in the drop down list. How I can add this in dropdown ? Any solution for this ?
Abdullah's user avatar
1 vote
0 answers
2k views

Limit Shipping to specific countries

I have two Sites one for GBP and one for Euro. For the Euro version I have set: Stores > Configuration > General > General > 'Default Country' = 'Ireland' Stores > Configuration > ...
Paddy Hallihan's user avatar
1 vote
1 answer
1k views

How to set a certain country as default in guest from and not select another one

i would like to set the country in guest checkout form for invoice und delivery adress hardcoded to default country x. And no other country should be able to getting selected. How do i managed this? ...
user5783213's user avatar
1 vote
0 answers
57 views

Module productive minds SiteSwitcher and changing countries

I have this module currently installed and when i use the top drop down Change Language it switches to the correct store utilizing the correct language and currency. No problem here, see picture below....
Head's user avatar
  • 177
1 vote
0 answers
117 views

After shipping address is saved in checkout redirect customer to another url if shipping country is

After shipping adress is saved in checkout, redirect customer to another url if shipping country is for example US where could I do it? I would use if($this->getQuote()->getShippingAddress()-&...
user1619177's user avatar
1 vote
0 answers
168 views

Select all countries code gives 'We're sorry, an error has occurred while generating this email.' error in Magento 2 [duplicate]

I have created a file for displaying all countries, but it shows We're sorry, an error has occurred while generating this email. Please help me to fix the issue. Any help will be appreciated. app\...
Hima Mohan's user avatar
1 vote
1 answer
495 views

Character encoding in region list

I've just imported a big list of regions/states to the Magento table directory_country_region as UTF8 However, in the region/state box at checkout I now see encoding issues for many special ...
Andreas's user avatar
  • 323
1 vote
1 answer
583 views

Google Analytics not working with store views Fooman module

We have implemented the Fooman Google Analytics Plus module. The UA tag seems to working properly when checking it with Google's tag chrome plugin. However, it's not tracking subdirectories properly....
Zach's user avatar
  • 13
0 votes
3 answers
7k views

How to remove countries from Magento 2 drop down list?

Basically I would like to show selected countries in the shipping and billing forms. Is there a correct way to achieve this? I intend to use following JS: jQuery('select[name=country_id]') .find(...
FR STAR's user avatar
  • 145
0 votes
1 answer
323 views

Magento2: How to get country list in custom HTML template

I need to display a country list with dropdown in the custom knockout HTML template. Help would be appreciated.
Ravi Soni's user avatar
  • 1,809
0 votes
1 answer
2k views

Magento2 VAT id required for specific countries

i have an Magento2 Shop and the countries Germany and France are allowed. Now i want the following settings: DE = Vat ID is optional in checkout and register FR = Vat ID is required in checkout and ...
Maximilian Schwarz's user avatar
0 votes
3 answers
264 views

Convert the currency format to USD for the purchases outside India

I have set up my magento store with magento 1.9. I want the currency format to be automatically converted to USD throughout my magento store, if the customer is purchasing from any country other than ...
Akshay Vasu's user avatar
0 votes
1 answer
95 views

Restrict Place Order if Shipping Country is USA

I want to RESTRICT "Place Order" for Shipping Country USA if certain products are in Cart. Can anyone please suggest me how to achieve this functionality?
Abhishek Panchal's user avatar
0 votes
2 answers
806 views

Magento get Zipcodes for a particular country and state

I am using Magento 1.9.x version for my website. Now I am fectching the country list for storing country in a business directory. I am able to fetch all the states of a particular country (US) when ...
Vicky Dev's user avatar
  • 1,992
0 votes
1 answer
161 views

How to remove currency full name in magento 2 like USD- US Dollar. i wanna remove US Dollar

I am using Magento 2 and I wanna remove the currency country name. I mean just code should be shown. Thanks
Ali Ahmad Amin's user avatar
0 votes
1 answer
131 views

GeoIP issue when automatically setting storeview in Magento 2 (`geoip_country_code_by_name` function)

In order to automatically switch store views depending on a user's location we have decided to add the code provided here:Magento 2 pragmatically set storeview to ourindex.php file as shown below: <...
Alex B's user avatar
  • 101
0 votes
0 answers
273 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 ...
Asad Khan's user avatar
  • 1,486
0 votes
0 answers
227 views

How to get country name using currency code in Magento 2

I want to get country name using currency code. For ex. if currency code is INR then, It should be return country name : India. How to do that? Any help would be appreciated. Thanks.
Ankita Patel's user avatar