RY City Select for WooCommerce
Show a dropdown select as the cities input on WooCommerce. Auto set the postcode for selected city.
The facts
- Rating
- 4.9★ from 9
- Active installs
- 2k+
- Price
- Free
- Last updated
- 6 Jun 2026
- Added
- Dec 2019
- Requires WP
- 6.8
- Tested up to
- WP 7.0.4
- Requires PHP
- 8.2
- Downloads
- 37,967
Our analysis
AI-assistedRY City Select for WooCommerce is a WordPress plugin that enhances the checkout process by allowing customers to select their city from a dropdown list instead of entering it manually. This dropdown can be displayed on checkout pages, edit addresses pages, and the shipping calculator if configured appropriately. When a city is selected, the plugin can automatically set the corresponding postcode if it is defined.
To add cities to the dropdown, you need to modify your theme's functions.php file using the provided filter. This requires some familiarity with WordPress development, making it suitable for users who are comfortable with coding.
Best for: This plugin is best for WooCommerce store owners who want to simplify city selection for their customers.
What it does well
- ✓Provides a dropdown list of cities for easier selection
- ✓Automatically sets postcode based on selected city
- ✓Can be configured for checkout and address editing pages
- ✓Free to use from the WordPress.org directory
Where it falls short
- •Requires coding knowledge to add cities
- •Limited information on additional features
Verdict
RY City Select for WooCommerce offers a straightforward solution for managing city selections in your online store. It is a useful tool for those familiar with WordPress coding.
From the developer
Richer Yang's own description of RY City Select for WooCommerce, lightly tidied.
This plubin is based on WC City Select
WooCommerce uses a text input for the customers to enter the city or town.
With this plugin you can provide a list of cities to be shown as a select dropdown.
This will be shown in checkout pages, edit addresses pages and shipping calculator if it’s configured that way.
After selected the city or town, auto set the postcode number if is defined.
How to add cities
A list of cities can be added in your theme functions.php file.
Use ry_wc_city_select_cities filter to load your cities.
This is done similarly to Add/Modify States.
It should be added on your functions.php or a custom plugin.
add_filter( 'ry_wc_city_select_cities', 'my_cities' );
/**
* Replace XX with the country code. Instead of YYY, ZZZ use actual state codes.
* The City list can list of city name with postcode or just city name.
*/
function my_cities( $cities ) {
$cities['XX'] = array(
'YYY' => array( // city name with postcoe
['City', '100'],
['Another City', '101']
),
'ZZZ' => array( // just city name
'City 3',
'City 4'
)
);
return $cities;
}