WOOCS - WooCommerce Currency Switcher

How to add more countries to the woocommerce site

WOOCS uses woocommerce php class WC_Countries for working with GEO IP. This class allows get list of countries, but of course not all countries on the planet. So if it will be necessary add more countries you can:

  • In your theme functions.php add next code:
    /* Add a new country to countries list */
    function woo_add_my_country( $country ) {
      $country["AE-DU"] = 'Dubai';  
    	return $country; 
    add_filter( 'woocommerce_countries', 'woo_add_my_country', 10, 1 );
  • Try to use this plugin - Woocommerce Add Countries