=== CodeOn Georgian Locations ===
Contributors: codeon
Tags: woocommerce, georgia, address, checkout, location
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.1
Requires Plugins: woocommerce
Stable tag: 0.5.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Georgian addresses at WooCommerce checkout: a Region → Municipality → Settlement picker with all 4,394 settlements of Georgia.

== Description ==

WooCommerce has no list of Georgian cities and villages. Customers type their settlement by hand, with different spellings in two alphabets, so reports and courier hand-offs suffer.

**CodeOn Georgian Locations** ships the full administrative list of Georgia (13 regions, 77 municipalities, 4,394 cities, towns and villages) as a cascading checkout picker.

Customers pick **Region → Municipality → Settlement**. The choice is checked on the server, stored as structured order data and shown in the admin orders list.

= What you get =

* A cascading address picker on both the classic checkout and the Checkout block
* 4,394 Georgian settlements in Georgian, with Latin transliteration
* Region codes that match WooCommerce's existing Georgia states (TB, AJ, IM, …), so existing orders keep working
* A Tbilisi-only mode, with optional surrounding areas you pick
* A Georgian address format on emails, invoices and the My Account page
* A REST API for search and cascade lookups
* Compatible with WooCommerce's High-Performance Order Storage
* Occupied territories (Abkhazia, Tskhinvali region) hidden by default, with a switch to show them
* Display mode: Georgian, Latin transliteration, or both ("კონდოლი (Kondoli)")

= The CodeOn menu =

The plugin adds a CodeOn menu to wp-admin. Other CodeOn plugins join the same menu instead of each adding their own. CodeOn → Extensions lists the other CodeOn plugins with links to their pages. Paid CodeOn plugins are sold at codeon.ge. You don't need them for the locations features.

== Installation ==

1. In wp-admin go to Plugins → Add New, search for "CodeOn Georgian Locations", then click Install Now and Activate.
2. Open CodeOn → Locations to choose the display mode and the checkout fields.
3. The picker appears at checkout as soon as a customer selects Georgia as their country.

== Frequently Asked Questions ==

= Does it work with the WooCommerce Checkout block? =

Yes. The picker works on the Checkout block and on the classic shortcode checkout.

= Does it conflict with my existing Georgia state codes? =

No. The plugin keeps WooCommerce's 12 Georgian state codes (TB, AJ, IM, …) and only adds `TS` for the Tskhinvali region. Existing orders still validate.

= A village is missing or misspelled. Can it be fixed? =

Yes. The list comes from ka.wikipedia.org, grouped by municipality. Tell us on the support forum and we'll fix it in the next release.

= Are occupied territories included? =

Yes. Abkhazia and the Tskhinvali region are in the list but **hidden by default**. Turn them on in the settings if your store ships there.

= I used the plugin before it was on WordPress.org. How do I switch? =

Install this version from Plugins → Add New, then deactivate and delete the old copy (its folder is `codeon-core`). Your settings stay. Until you remove the old copy, this one shows a notice and stays paused.

== External services ==

The plugin connects to one outside service: the CodeOn catalog at codeon.ge. It uses the catalog to list the CodeOn plugins on the CodeOn dashboard and on CodeOn → Extensions.

* **When:** nothing is requested until an administrator clicks "Show CodeOn plugins" on CodeOn → Extensions. After that, when an administrator opens CodeOn → Extensions or the CodeOn dashboard, at most once every 6 hours (the answer is cached). Until then the dashboard shows a built-in list.
* **What is sent:** a request to `https://codeon.ge/api/v1/catalog`. It carries no information about your site, its customers or its orders.
* **What comes back:** the list of CodeOn plugins (names, short descriptions, links, prices).
* Terms of use: https://codeon.ge/terms
* Privacy policy: https://codeon.ge/privacy

Checkout, address lookups and the settlement data all run on your own site. Nothing about customers or orders leaves it.

== Screenshots ==

1. Cascading address picker on the WooCommerce checkout — Region, Municipality, Settlement.
2. Diagnostics tab showing dataset size and version.
3. CodeOn menu with installed plugins listed underneath.

== Changelog ==

= 0.5.0 =
* First release on WordPress.org. Updates now come from WordPress.org.
* The plugin's folder and text domain are now `codeon-georgian-locations`. If the old `codeon-core` copy is still active, this copy shows a notice and waits until you remove it. Your settings stay.
* CodeOn → Extensions now links to the other CodeOn plugins instead of installing them from codeon.ge.
* The surrounding-areas picker on the Tbilisi tab uses WooCommerce's own selectWoo instead of a copy loaded from a CDN.
* Admin scripts and styles now load as regular WordPress assets.

= 0.4.1 — 2026-11-24 =
* CodeOn → Extensions: free CodeOn plugins have their own "Free plugins" section.

= 0.4.0 — 2026-11-24 =
* Renamed from CodeOn Core to CodeOn Georgian Locations, a name that says what the plugin does.

Earlier versions were distributed from codeon.ge. Their changelog is at https://github.com/Samsiani/codeon-georgian-locations/releases
