BACK TO DIRECTORY

WC – APG City

by Art Project Group

4.7
(3 ratings)

WC – APG City adds to your WooCommerce store a new automatic city field generated from the postcode via the GeoNames API or the Google Maps API.

Features

  • Fully compatible with the Checkout block in the WordPress block editor.
  • Includes a local GeoNames database that is downloaded and updated monthly to improve performance and reduce external API queries.
  • You can choose between the GeoNames API and the Google Maps API.
  • You must add your own Google Maps API Key or GeoNames username.
  • Your API credentials are never sent to the browser: every lookup is made by the server.
  • You can customize the default text of the select field.
  • You can customize the text of the option used to switch to a text field.
  • You can block modifications to the city and province (state) fields.
  • You can customize the background color of the locked fields.
  • If the postcode is shared by more than one city, the customer can select the correct city name from the list returned by GeoNames or Google Maps.
  • If the city is not in the list or cannot be found in either API, the customer can manually enter their city name.
  • It also selects the province (state), as long as the name matches the one obtained from GeoNames or Google Maps.
  • Contextual help on the settings page, explaining every setting without leaving the screen.

Translations

More information

You can learn more about WC – APG City on our official website, and follow the development on GitHub.

You can also read the full documentation, with every setting explained one by one.

Thanks

Thanks to everyone who uses the plugin, helps improve it, makes a donation or encourages us with their comments.

If you find this plugin useful, you can support its development with a small donation.

External Services

  1. To the GeoNames services, to download and update, on a monthly basis, the full local database of cities and postcodes, as well as to perform queries to its API when there is no information in the local database.

    • It sends the country and the postcode.
    • More information: https://www.geonames.org/export/
  2. To the Google Maps API, to obtain the city and state/province name from the postcode and country when this option is selected in the plugin settings.

    • It sends the country and the postcode.
    • More information: https://policies.google.com/privacy

Screenshots

Screenshot of WC - APG City.

Screenshot of WC - APG City.

Screenshot of WC - APG City. Billing and shipping forms.

Screenshot of WC - APG City. Billing and shipping forms.

Screenshot of WC - APG City. Billing and shipping forms. Checkout block.

Screenshot of WC - APG City. Billing and shipping forms. Checkout block.

Plugin Details

Active Installs
100
Total Downloads
8,686
Version
2.2.0
Requires WP
5.1
Requires PHP
7.4
Tested Up To
7.2
Added
2016-08-11
Last Updated
2026-10-28 9:25pm GMT

Ratings

5
2
4
1
3
0
2
0
1
0