Function asa2_i18n_get_user_country_iso_code
This method retrieves the user’s ISO country code.
Example:
$isoCode = asa2_i18n_get_user_country_iso_code(); // $isoCode contains the user's ISO country code, like "US", "UK", "DE" ...
Parameters summary
boolean |
$storeMatch = true |
Optional. Set to true to get an ISO country code which is the best match for an Amazon store related to the user’s origin. Default is true. |
Return value summary
null|string
|
ISO country code or null on error |