Add city name field to shipping zone - Woocommerce

admin

Administrator
Staff member
I'm using <a href="https://wordpress.org/plugins/departamentos-y-ciudades-de-colombia-para-woocommerce/" rel="nofollow noreferrer">Departamentos y Ciudades de Colombia para Woocommerce</a> plugin which transforms input field for city/town to select field in the checkout section with the prepopulated list of cities/town provided in the plugin file.

I want to add the same city select field to the form to create shipping zones in Woocommerce. Although Woocommerce supports adding Continents/Countries/States/Postcodes but does not support adding city names in the shipping zone. I can use postcodes but that doesn't work as some countries do not support the postcode system or they cover larger areas on a single postcode.

Can someone guide me on which classes or files of the Woocommerce core need to be extended so that it supports city names for shipping zones? I want to create shipping zones based on city names. I think methods of <a href="https://docs.woocommerce.com/wc-apidocs/class-WC_Shipping_Zone.html" rel="nofollow noreferrer">
Code:
WC_Shipping_Zone
</a> needs to be overridden. Help me that which
Code:
actions
and
Code:
filters
of Woocommerce are of interest for the solution.