Title: RY City Select for WooCommerce
Author: Richer Yang
Published: <strong>2019-12-07</strong>
Last modified: 2026-10-21

---

Szukaj wtyczek

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

# RY City Select for WooCommerce

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

[Pobierz](https://downloads.wordpress.org/plugin/ry-wc-city-select.2.3.0.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/ry-wc-city-select/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/ry-wc-city-select/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/ry-wc-city-select/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/ry-wc-city-select/#developers)

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

## Opis

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;
    }
    ```

## Instalacja

#### Minimalne wymagania

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

## Najczęściej zadawane pytania

### 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.

Aby włączyć dane geonames.org, dodaj kod do swojego motywu functions.php.↵
 Lub 
użyj kodu Snippets[https://wordpress.org/plugins/code-snippets/] aby dodać kod.

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

## Recenzje

![](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/) 2025-08-22

五顆星~

![](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/) 2023-08-18

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/) 2023-04-11

太感動了，裝了立即可用。 使用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/) 2021-01-02

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/) 2020-12-20

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/) 2020-05-29

Very easy to setup and works perfect.

 [ Przeczytaj 9 recenzji ](https://wordpress.org/support/plugin/ry-wc-city-select/reviews/)

## Kontrybutorzy i deweloperzy

„RY City Select for WooCommerce” jest oprogramowaniem open source. Poniższe osoby
miały wkład w rozwój wtyczki.

Zaangażowani

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

Wtyczka „RY City Select for WooCommerce” została przetłumaczona na 6 języków. Podziękuj
[tłumaczom](https://translate.wordpress.org/projects/wp-plugins/ry-wc-city-select/contributors)
za ich wkład.

[Przetłumacz wtyczkę “RY City Select for WooCommerce” na swój język.](https://translate.wordpress.org/projects/wp-plugins/ry-wc-city-select)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/ry-wc-city-select/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/ry-wc-city-select/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/ry-wc-city-select/)
przez [RSS](https://plugins.trac.wordpress.org/log/ry-wc-city-select/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 2.3.0 – 2026/10/21

 * Change – Not auto selected the first city option.

#### 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

 *  Wersja **2.3.0**
 *  Ostatnia aktualizacja **3 tygodnie temu**
 *  Włączone instalacje **2,000+**
 *  Wersja WordPressa ** 6.8 lub nowszej **
 *  Testowano do **7.1.4**
 *  Wersja PHP ** 8.2 lub nowszej **
 *  Języki
 * [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/),
   i [Spanish (Argentina)](https://es-ar.wordpress.org/plugins/ry-wc-city-select/).
 *  [Przetłumacz na swój język](https://translate.wordpress.org/projects/wp-plugins/ry-wc-city-select)
 * Tagi
 * [city](https://pl.wordpress.org/plugins/tags/city/)[dropdown](https://pl.wordpress.org/plugins/tags/dropdown/)
   [select](https://pl.wordpress.org/plugins/tags/select/)[woocommerce](https://pl.wordpress.org/plugins/tags/woocommerce/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/ry-wc-city-select/advanced/)

## Oceny

 4.9 na 5 gwiazdek.

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

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

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

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/ry-wc-city-select/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://www.paypal.me/RicherYang)