Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eidos 44 posts 66 karma points
    Apr 22, 2015 @ 11:56
    Eidos
    0

    Shipping country list

    Short question: Where is the shipping country list? How can I modify it?

    Thanks

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Apr 22, 2015 @ 12:43
    Dennis Aaen
    0

    Hi Eidos,

    Perhaps this documentation can help you http://merchello.com/documentation/api/merchellocontext/Gateways/cur-gate-ship

    /Dennis

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 22, 2015 @ 17:49
    Rusty Swayne
    0

    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);
        }
    

    Interested to know what needs to be modified?

  • Eidos 44 posts 66 karma points
    Apr 23, 2015 @ 09:21
    Eidos
    0

    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!=)

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 23, 2015 @ 20:34
    Rusty Swayne
    0

    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

  • Eidos 44 posts 66 karma points
    Apr 28, 2015 @ 11:37
    Eidos
    0

    clear, thanks Rusty!

  • Mike Royle 38 posts 99 karma points
    Jul 23, 2015 @ 10:35
    Mike Royle
    0

    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.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 23, 2015 @ 13:45
    Rusty Swayne
    0

    @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 =)

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Jul 23, 2015 @ 15:17
    Biagio Paruolo
    0

    I used this list enter link description here taken from ISTAT ( Italian Istitute of Statistics )

  • Bex 444 posts 555 karma points
    Oct 11, 2016 @ 10:24
    Bex
    0

    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?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Oct 11, 2016 @ 15:34
    Rusty Swayne
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft