• Anonymous User 7343156

    (@anonymized-7343156)


    I’m using the plugin in Spanish and getting messages from customers saying they can’t make the payment because their countries don’t appear in the list when typing their addresses. I checked and the problem is the countries don’t appear in alphabetical order. For example, Spain in Spanish is “Espa?a”, and instead of appearing in the “E”, it still appears in the “S” as if it were written in English.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    Indeed, translated countries are not sorted by name.

    You can fix that by adding this to your theme’s functions.php file:

    function asp_sort_countries_by_name( $countries ) {
    	asort( $countries );
    	return $countries;
    }
    
    add_filter( 'asp_ng_pp_countries_list', 'asp_sort_countries_by_name' );
    Thread Starter Anonymous User 7343156

    (@anonymized-7343156)

    Thank you. Please fix this in future releases.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Countries are not in alphabetical order’ is closed to new replies.