=== iClose Logistics for WooCommerce ===
Contributors: icloselogistics
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.2.0
Requires Plugins: woocommerce
License: GPLv2 or later

Show iClose delivery fees on a WooCommerce checkout. The customer selects a state, then a pickup hub and/or typed pickup, or a city when priced by city.

== Description ==

Partners install this plugin on their own WordPress shop.

* WooCommerce → iClose Delivery stores the API URL, API key, pickup hubs, and checkout flags.
* Checkout asks for a state first. Per-km partners then show hubs and/or typed pickup plus delivery address. City partners show listed cities, with a typed city using the state default city fee.
* The plugin loads the live fee from iClose.
* That fee is the shipping line in the checkout order summary.
* After payment, the plugin can create the iClose order and store the booking and tracking numbers.

Use the classic checkout shortcode on the checkout page: [woocommerce_checkout]

Set the WooCommerce currency to Nigerian naira (NGN).

== Installation ==

1. Upload the plugin zip in WordPress → Plugins → Add New → Upload Plugin.
2. Activate iClose Logistics for WooCommerce.
3. Open WooCommerce → iClose Delivery.
4. Paste the API URL and API key from the iClose partner desk.
5. Enter the pickup address, sender phone, and sender city. Save and test the connection.
6. Confirm the checkout page uses [woocommerce_checkout].

== Changelog ==

= 1.2.0 =
* Pickup hubs, typed pickup toggle, city checkout with a per-state default city fee.

= 1.1.1 =
* More reliable route measurement and optional hiding of km text on checkout.

= 1.1.0 =
* Google Maps suggestions on pickup (settings) and delivery (checkout), with a loading spinner and faster lookup.
* Delivery fees honour the iClose minimum billed kilometres setting.

= 1.0.0 =
* Checkout state and delivery address, admin pickup address, and live delivery fees in the order summary.
