Hi @bibhashkarn,
Thanks for reaching out. This isn’t possible with WooCommerce natively, but might be possible through custom development. WooCommerce has hooks and filters for modifying the states that appear: https://docs.woocommerce.com/document/addmodify-states/
It is also possible to modify the type of a field with the woocommerce_checkout_fields
hook. Here’s an example I found of making the city a select field: https://gist.github.com/JeroenSormani/564f66bd2f697291e6c37b1ed3c595dc#file-woocommerce-change-city-field-to-dropdown-php
Neither of these solve the issue of making the city options populate based on the selected state. This would likely take some custom javascript to do something like this:
- Watch for changes to the state
- Query the server with AJAX to get a list of cities in that state
- Update the options of the city select with the new cities.
All of this is well outside the scope of theme support, so regretfully we won’t be able to assist further. Hopefully this gives you some ideas on how to get started if you want to code your own solution, or it may help shape a discussion if you bring it to a developer.