Developer forum

Forum » CMS - Standard features » Missing country in the dropdown listbox "Billing / Shipping country"

Missing country in the dropdown listbox "Billing / Shipping country"

Lars Larsen
Lars Larsen
Reply

Hi

We are missing the country "East Timor" in the dropdown listbox "Billing / Shipping country" (see screenshot) when editing a user. The country is created in SETTINGS - Ecommerce - Internationalization - Countries. Where does the countries shown in the dropdown listbox "Billing / Shipping country" come from? How can we get all countries into the dropdown listbox?

Capture.png

Replies

 
Nicolai Pedersen
Reply

The list of countries comes from this code:

System.Globalization.CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);

You can add a custom culture if it is missing: https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureandregioninfobuilder?view=netframework-4.8

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Lars,

"East Timor" is also called "Timor-Leste" and you should be able to find that in the dropdown.
The country code is "TL".

 

Best regards,
Morten

 
Lars Larsen
Lars Larsen
Reply

Hi Morten

"Timor-Leste" is also missing from the dropdown listbox. 

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

The available countries depend on the version of Windows used on the server.
I believe that "Timor-Leste" was added/updated in Windows 10 and Windows Server 2016.

If your Windows version is older than that it could explain why the country is missing and you would have to register a custom culture as Nicolai suggested.

Votes for this answer: 1

 

You must be logged in to post in the forum