• I added the code below but still, the city drop-down is empty

    add_filter( ‘wcfmmp_city_select_dropdown_enabled’, ‘__return_true’ );

    add_filter( ‘wc_city_select_cities’, ‘my_cities’ );
    function my_cities( $cities ) {
    $cities[‘zw’] = array(
    ‘Harare’,
    ‘Chitungwiza’,
    ‘Norton’,
    ‘Kadoma’,
    ‘Chegutu’,
    ‘Kwekwe’,
    ‘Gweru’,
    ‘Bulawayo’,
    ‘Mutare’,
    ‘Epworth’,
    ‘Chinhoyi’,
    ‘Marondera’,
    ‘Ruwa’,
    ‘Zvishavane’,
    ‘Bindura’
    );
    return $cities;
    }

Viewing 1 replies (of 1 total)
  • Plugin Author mantish

    (@mantish)

    Hi,
    maybe try using your country code in uppercase $cities['ZW'] = ...

    Other than that, your code looks fine.

Viewing 1 replies (of 1 total)
  • The topic ‘No results found on the city dropdown’ is closed to new replies.