Since version 1.2.x, the plugin WC Provincia Canton Distrito allows you to set locations from different countries. You must follow the guide of Add States and Cities to WooCommerce (Provincia Cantones) to get it working on your site.
Also, you need to set up your locations in a .json file that will be loaded to your site, and then they will populate your dropdown addresses fields on your Checkout page, My account flow, and others.
Complete this prov-cant-dist.json file might be stressful, so I will be sharing some country files that I’d received from external collaborators. I invite you to participate and share your country’s State and cities locations file. You can send it to contacto@keylormendoza.com.
- Costa Rica plugin default locations
- Ecuador thanks to José Leones
- Guatemala thanks to José Leones
- Peru thanks to Julissa Castillo (New)
Since version 1.4.1, there is a new way to override the locations of the plugin, here are the details:
- From options in plugin settings. Go to Settings > WC Provincia Canton Distrito > Locations.

- Via snippet of code
/**
* Adding custom json locations from child theme
* WC Provincia-Canton-Distrito
*/
function kmchild_prov_cant_dist_json($json_file) {
$json_file = get_stylesheet_directory_uri() . '/assets/js/prov-cant-dist.json';
return $json_file;
}
add_filter('wcpcd_prov_cant_dist_json', 'kmchild_prov_cant_dist_json');
At the end of the settings page, you can see the locations path and listing from where they are loading to your site

Any doubts or suggestions?