ASA2 Functions
  • Package
  • Function

Packages

  • API
  • Helper
  • i18n
  • Options
  • OptionsShortcuts
  • Renderer
  • Repo

Functions

  • asa2_i18n_get_user_country_iso_code
  • asa2_i18n_get_user_data

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" ...
Package: i18n
Since: 1.8.0
Located at functions_i18n.php

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
ASA2 Functions API documentation generated by ApiGen