The countries are generated from CultureInfo in the StoreSettingsService
/// <summary>
/// Gets a collection of all <see cref="ICountry"/>
/// </summary>
/// <returns>
/// The collection of all countries.
/// </returns>
public IEnumerable<ICountry> GetAllCountries()
{
return CultureInfo.GetCultures(CultureTypes.SpecificCultures)
.Select(culture => new RegionInfo(culture.Name))
.Select(ri => GetCountryByCode(ri.TwoLetterISORegionName)).DistinctBy(x => x.CountryCode);
}
It looks like Microsoft does not support a complete list so we'll have to do something else. I'll have to refactor some stuff in the StoreSettingsService.
Cyprus is also missing. It would also be good to have a single European entry. I currently have to add every country in Europe and create a new identical Shipping Provider to each one.
@Mike, I like the concept of being able to configure areas (like Europe, Asia, North America ....). I'll jot it down for something in the future, but we have limited bandwidth and have a ton of work already scheduled in the next big feature scheduled to start in August and I'm guessing this will have to wait until at least after that effort is complete.
Has been a feature request for a long time with a Merchello.config refactoring. There has been some work on it in our V8 prep branch and is on the roadmap to back port in version 2.4.
Shipping country list
Short question: Where is the shipping country list? How can I modify it?
Thanks
Hi Eidos,
Perhaps this documentation can help you http://merchello.com/documentation/api/merchellocontext/Gateways/cur-gate-ship
/Dennis
The countries are generated from CultureInfo in the StoreSettingsService
Interested to know what needs to be modified?
Thanks @Dennis and @Rusty.
The problem is that some countries are missing.
For example Bahamas (BS), Cuba (CU) and others.
Is there a way to add it?
Is there a problem related to CultureType?
Thanks again!=)
It looks like Microsoft does not support a complete list so we'll have to do something else. I'll have to refactor some stuff in the StoreSettingsService.
https://msdn.microsoft.com/en-us/library/system.globalization.regioninfo(v=VS.90).aspx
I've added an issue here: http://issues.merchello.com/youtrack/issue/M-685
clear, thanks Rusty!
Cyprus is also missing. It would also be good to have a single European entry. I currently have to add every country in Europe and create a new identical Shipping Provider to each one.
@Mike, I like the concept of being able to configure areas (like Europe, Asia, North America ....). I'll jot it down for something in the future, but we have limited bandwidth and have a ton of work already scheduled in the next big feature scheduled to start in August and I'm guessing this will have to wait until at least after that effort is complete.
It'd be an awesome pull request though =)
I used this list enter link description here taken from ISTAT ( Italian Istitute of Statistics )
Did anything come of this? Or any way of adding extra countries?
I need to somehow have Northern Ireland.
Just wondering if there's a way round it to add it in?
Hey Bex,
Has been a feature request for a long time with a Merchello.config refactoring. There has been some work on it in our V8 prep branch and is on the roadmap to back port in version 2.4.
is working on a reply...