The dropdown of town/city doesn’t work
-
I have added the code through Snippet, but the dropdown section from the checkout page doesn’t work. It seems doesn’t come with the city I add in the function.php file. Below is the code I have with WC select city, can you kindly let me know what the issue is:
<?php
add_filter( ‘wc_city_select_cities’, ‘my_cities’ );
/**
* Replace XX with the country code. Instead of YYY, ZZZ use actual state codes.
*/
function my_cities( $cities ) {$cities[‘CL’] = array(
‘Metropolitana de Santiago’ => array(
‘Provincia de Chacabuco’,
‘Provincia de Cordillera’,
‘Provincia de Santiago’
),
);
return $cities;
}The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘The dropdown of town/city doesn’t work’ is closed to new replies.