• Hi Paul,

    thanks a bunch for such a great plugin!

    I do have a specific question about the way localization actually works as I couldn’t find details on that.

    Let’s consider the simple situation where I have 2 Amazon associate accounts, US and Germany. US is the default country in this scenario.
    Now, when localization is enabled, and someone is detected as being in the US or Germany, they obviously get the respective country link.
    So far, so good.

    But:

    What happens if someone from a neighboring country visits the site?

    1) Let’s say someone from Spain visits the site. I personally would actually find it much more useful to send them to the German site (since shipping costs are not that bad compared to orderding from the US), but from what I understand, the plugin would send them to the US store.

    2) In case your answer to 1) is to sign up for the Spanish associate program, let’s say someone from Portugal visits. They should also be sent to the nearest available Amazon store (which would be Germany as opposed to the US). Correct?

    3) And finally, let’s say someone from Chile visits, how is the country they see being determined?

    I guess all those examples have in common whether or not there is some sort of “proximity logic” in place to determine the nearest neighbor marketplace, in case the visiting country itself doesn’t have an Amazon marketplace.

    Thanks for a clarification!
    best,
    Flo

Viewing 1 replies (of 1 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    Not a lot of work has gone into that part of the plugin, if you want to come up with a cool scheme let me know and I can add it to the plugin.

    Your understanding of how the plugin works is pretty spot on, so:

    1) This is correct
    2) They should be sent to Germany, but as you probably guessed they get went to the US site.
    3) Chile is not in the current mapping, so again they get sent to the US site.

    There are 257 locales in the ip2nation database, so probably best to focus on the countries your site attracts and do specific mappings for them, and I can add them to the plugin.

    The code that currently maps the countries uses the following map:

    
    $country_map = array( 'uk' => 'uk', 'ie' => 'uk', 'im' => 'uk', 'gi' => 'uk', 'gl' => 'uk', 'nl' => 'uk',
                                   'vg' => 'uk', 'cy' => 'uk', 'gb' => 'uk', 'dk' => 'uk', 'gb' => 'uk',
                                   'fr' => 'fr', 'be' => 'fr', 'bj' => 'fr', 'bf' => 'fr', 'bi' => 'fr', 'cm' => 'fr',
                                   'cf' => 'fr', 'td' => 'fr', 'km' => 'fr', 'cg' => 'fr', 'dj' => 'fr', 'ga' => 'fr',
                                   'gp' => 'fr', 'gf' => 'fr', 'gr' => 'fr', 'pf' => 'fr', 'tf' => 'fr', 'ht' => 'fr',
                                   'ci' => 'fr', 'lu' => 'fr', 'mg' => 'fr', 'ml' => 'fr', 'mq' => 'fr', 'yt' => 'fr',
                                   'mc' => 'fr', 'nc' => 'fr', 'ne' => 'fr', 're' => 'fr', 'sn' => 'fr', 'sc' => 'fr',
                                   'tg' => 'fr', 'vu' => 'fr', 'wf' => 'fr',
                                   'de' => 'de', 'at' => 'de', 'ch' => 'de', 'no' => 'de', 'dn' => 'de', 'li' => 'de',
                                   'sk' => 'de',
                                   'es' => 'es',
                                   'it' => 'it', 'va' => 'it',
                                   'cn' => 'cn',
                                   'ca' => 'ca', 'pm' => 'ca',
                                   'jp' => 'jp',
                                   'in' => 'in',
                                   'br' => 'br',
                                   'au' => 'au',
                                   'mx' => 'mx');

    If the visitor’s country code is not in the map then they get sent to the US site.
    If you have not enabled the locale that they have been mapped to (e.g. ‘jp’ is not enabled), then they get sent to the default locale.

    Easiest thing to do for me would be to add a two stage filter:

    The existing mapping but with a bit more thought, e.g. add Portugal => Spain

    Then if certain locales have been disabled by the admin, map them to ones that are enabled.

    Ideas?

    Paul

Viewing 1 replies (of 1 total)
  • The topic ‘Localization details’ is closed to new replies.