Title: RY City Select for WooCommerce
Author: Richer Yang
Published: <strong>7. decembra 2019</strong>
Last modified: 6. junija 2026

---

Tykače pytać

![](https://ps.w.org/ry-wc-city-select/assets/icon-256x256.png?rev=3586261)

# RY City Select for WooCommerce

 Wot [Richer Yang](https://profiles.wordpress.org/fantasyworld/)

[Sćahnyć](https://downloads.wordpress.org/plugin/ry-wc-city-select.2.2.0.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/ry-wc-city-select/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/ry-wc-city-select/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/ry-wc-city-select/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/ry-wc-city-select/#developers)

 [Podpěra](https://wordpress.org/support/plugin/ry-wc-city-select/)

## Wopisanje

This plubin is based on [WC City Select](https://tw.wordpress.org/plugins/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](https://docs.woocommerce.com/document/addmodify-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;
    }
    ```

## Instalacija

#### Minimum Requirements

 * PHP 8.2+
 * WordPress 6.8+
 * WooCommerce 10.0+

## HSP

### Where can I contribute the cities list of my country?

Please use [GitHub repository](https://github.com/RicherYang/RY-WC-City-Select).

Use issuu give me the list, or use pull requests the file change.

If your country don’t have states list in woocommerce (see file /woocommerce/i18n/
states.php).
 You also need contribute the states list.

The sample file is cities/TW.php and states/TW.php

### Where can I report bugs or contribute to the project?

Report bugs on the [GitHub repository](https://github.com/RicherYang/RY-WC-City-Select/issues),

or my [person website page](https://ry-plugin.com/ry-wc-city-select).

### All cities list from http://geonames.org/

From the [RY-WC-City-Select-cities-files](https://github.com/sergioxdev/RY-WC-City-Select-cities-files)

You can add almost main states and cities list in the world. But some state or city
may use different name with the official name.

To enable geonames.org data, add code into you theme functions.php.
 Or use Code
Snippets[https://wordpress.org/plugins/code-snippets/] to add code.

    ```
    add_filter('ry_wcs_load_geonames_org', '__return_true');
    ```

## Pohódnoćenja

![](https://secure.gravatar.com/avatar/245a1967a9fe0b2ee48bcb1c840843e722ebd26e75a8a46d1566b8fd57d2030c?
s=60&d=retro&r=g)

### 󠀁[非常棒](https://wordpress.org/support/topic/%e9%9d%9e%e5%b8%b8%e6%a3%92-11/)󠁿

 [millenniumlin](https://profiles.wordpress.org/millenniumlin/) 22. awgusta 2025

五顆星~

![](https://secure.gravatar.com/avatar/2c22e2d60bf1cc85a8bf340851c77080e5db2b4441dd219934f829ebbe0a9968?
s=60&d=retro&r=g)

### 󠀁[Not correct Armenian city name](https://wordpress.org/support/topic/not-correct-armenian-city-name/)󠁿

 [Raffi](https://profiles.wordpress.org/raffie/) 18. awgusta 2023

Good plugin, but the names of cities in my country Armenia are incorrect, please
correct it.The list of cities in Armenia can be found on wikipedia site in the search
you need to type "List of cities and towns in Armenia"it's not much, only 49 pieces.
please fix in zip archive \geonames-org-data\cities\AM.php

![](https://secure.gravatar.com/avatar/609f5fe31ac141455572f7178c6d015a2dbc4e1047c00512307c7da703fdf497?
s=60&d=retro&r=g)

### 󠀁[符合台灣郵遞區號](https://wordpress.org/support/topic/%e7%ac%a6%e5%90%88%e5%8f%b0%e7%81%a3%e9%83%b5%e9%81%9e%e5%8d%80%e8%99%9f/)󠁿

 [田小蓉](https://profiles.wordpress.org/g618/) 11. apryla 2023

太感動了，裝了立即可用。 使用KadenceTheme

![](https://secure.gravatar.com/avatar/cecb4a499c2013716672b1b4ef422670b0190ea42d110ee566cc2d9ce54dfb92?
s=60&d=retro&r=g)

### 󠀁[Excellent, marbellous plugin](https://wordpress.org/support/topic/excelente-marbellous-plugin/)󠁿

 [fcalabro](https://profiles.wordpress.org/fcalabro/) 2. januara 2021

Thank you thank you thank you!!!

![](https://secure.gravatar.com/avatar/f5cd16989fa4e43f10c71dbdc4ef13914b7fa3e95930be9eb8f3699df5ebe0c4?
s=60&d=retro&r=g)

### 󠀁[Works very well](https://wordpress.org/support/topic/works-very-well-543/)󠁿

 [shivchawla](https://profiles.wordpress.org/shivchawla/) 20. decembra 2020

Works very well!!!

![](https://secure.gravatar.com/avatar/6fe3123129a338e9c72d863f96cd75ca9252770e65c4ee7c686c6ca56fb5224c?
s=60&d=retro&r=g)

### 󠀁[Works perfect](https://wordpress.org/support/topic/works-perfect-794/)󠁿

 [Samir Rifai](https://profiles.wordpress.org/srifaia/) 29. meje 2020

Very easy to setup and works perfect.

 [ Čitajće 9 pohódnoćenjow ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/)

## Sobuskutkowarjo a wuwiwarjo

„RY City Select for WooCommerce“ je softwara wotewrjeneho žórła. Slědowacy ludźo
su k tutomu tykačej přinošowali.

Sobuskutkowarjo

 *   [ Richer Yang ](https://profiles.wordpress.org/fantasyworld/)

„RY City Select for WooCommerce“ je so do 6 rěčow přełožił. Dźakujemy so [přełožowarjam](https://translate.wordpress.org/projects/wp-plugins/ry-wc-city-select/contributors)
za jich přinoški.

[Přełožće „RY City Select for WooCommerce“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/ry-wc-city-select)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/ry-wc-city-select/),
hladajće do [SVN-repozitorija](https://plugins.svn.wordpress.org/ry-wc-city-select/)
abo abonujće [wuwiwanski protokol](https://plugins.trac.wordpress.org/log/ry-wc-city-select/)
přez [RSS](https://plugins.trac.wordpress.org/log/ry-wc-city-select/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 2.2.0 – 2026/06/06

 * Update minimum requirements for WordPress and PHP.

#### 2.1.11 – 2025/12/07

 * Fixed – When country change maybe set error city info.

#### 2.1.10 – 2025/12/06

 * Change – when user change state auto-select first city.
 * Change – city required info to WooCommerce (Version 10.3) html tage style.

#### 2.1.9 – 2025/04/29

 * Change minimum requires to WordPress 6.6

#### 2.1.8 – 2025/02/17

 * Fixed error text-domain.
 * Smaller cities name list file.

#### 2.1.6 – 2025/02/07

 * Update language .pot file.

#### 2.1.5 – 2025/02/07

 * Fixed the error default setting.

#### 2.1.4 – 2025/02/04

 * Update postal code for Romania state Sibiu ([#9](https://github.com/RicherYang/RY-WC-City-Select/issues/9)).

#### 2.1.3 – 2025/02/02

 * Update cities for Romania state Sibiu ([#8](https://github.com/RicherYang/RY-WC-City-Select/issues/8)).

#### 2.1.2 – 2024/11/21

 * Change WordPress croe required / tested version info.
 * Change PHP required version info.

#### 2.1.0 – 2024/03/022

 * CHANGE Plugin name.

#### 2.0.1 – 2023/08/26

 * Fixed change city maynot edit the zip code.

#### 2.0.0 – 2023/04/23

 * CHANGE License to GPLv3.

#### 1.1.3.1 – 2023/03/30

 * Change WordPress croe tested version info.

#### 1.1.3 – 2023/02/13

 * Change main class name.

#### 1.1.2 – 2022/07/16

 * Change plugin info.

#### 1.1.1 – 2022/06-03

 * add Romanian cities. (by condor2)

#### 1.1.0 – 2022/04/04

 * postal code clear with selected no postal code city ([issuu #6](https://github.com/RicherYang/RY-WC-City-Select/issues/6))
 * change form field html style more like woocommerce

#### 1.0.0 – 2019/12/07

 * First release

## Meta

 *  Version **2.2.0**
 *  Last updated **4 měsacy**
 *  Active installations **2.000+**
 *  WordPress version ** 6.8 abo nowši **
 *  Tested up to **7.0.7**
 *  PHP version ** 8.2 abo nowši **
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/ry-wc-city-select/), [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/ry-wc-city-select/),
   [English (Canada)](https://en-ca.wordpress.org/plugins/ry-wc-city-select/), [English (UK)](https://en-gb.wordpress.org/plugins/ry-wc-city-select/),
   [English (US)](https://wordpress.org/plugins/ry-wc-city-select/), [Lao](https://lo.wordpress.org/plugins/ry-wc-city-select/)
   a [Spanish (Argentina)](https://es-ar.wordpress.org/plugins/ry-wc-city-select/).
 *  [Přełožće do swojeje rěče](https://translate.wordpress.org/projects/wp-plugins/ry-wc-city-select)
 * Tags
 * [city](https://hsb.wordpress.org/plugins/tags/city/)[dropdown](https://hsb.wordpress.org/plugins/tags/dropdown/)
   [select](https://hsb.wordpress.org/plugins/tags/select/)[woocommerce](https://hsb.wordpress.org/plugins/tags/woocommerce/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/ry-wc-city-select/advanced/)

## Pohódnoćenja

 4.9 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/)

## Sobuskutkowarjo

 *   [ Richer Yang ](https://profiles.wordpress.org/fantasyworld/)

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/ry-wc-city-select/)

## Darić

Chceće dalewuwiwanje tutoho tykača podpěrać?

 [ Za tutón tykač darić ](https://www.paypal.me/RicherYang)