• Resolved krasniqi8

    (@krasniqi8)


    Hello dear staff of Woocommerce I’m having every time problem when i make update ur plugin bc my country its not yet added on your list country please. Can you add my country to ur list.

    If u need any help about it im glad to support ur team about this case.
    Country: Kosovo
    the list of All municipalities

    https://kk.rks-gov.net/#lista

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @krasniqi8,

    Hello dear staff of Woocommerce I’m having every time problem when i make update ur plugin bc my country its not yet added on your list country please. Can you add my country to ur list.

    A Github report was already opened to add the Republic of Kosovo as its own country: https://github.com/woocommerce/woocommerce/issues/35819

    At the time being, you add the following snippet to your site to fix the problem.

    /**
     * Add a new country to countries list
     */
    add_filter( 'woocommerce_countries',  'handsome_bearded_guy_add_my_country' );
    function handsome_bearded_guy_add_my_country( $countries ) {
      $new_countries = array(
    	                    'XK'  => __( 'Kosovo', 'woocommerce' ),
    	                    );
    
    	return array_merge( $countries, $new_countries );
    }
    
    add_filter( 'woocommerce_continents', 'handsome_bearded_guy_add_my_country_to_continents' );
    function handsome_bearded_guy_add_my_country_to_continents( $continents ) {
    	$continents['EU']['countries'][] = 'XK';
    	return $continents;
    }

    I’m not sure if ‘XK’ is the country abbreviation, feel free to edit the snippet as you like.

    You can add it to your functions.php file or use a plugin like Code snippet.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Country / State’ is closed to new replies.