Content of the page

$WOOCS->get_currency_by_country()

Content of the article

Works when GEO IP option is enabled in the plugin settings. This function returns currency which is set in the GEO IP rules of the plugin

  • Here you can get country codes: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes (use Alpha-2 code)
  • Use next code if you want to get full name of the country by its code: