=== Live Liefertracker Delivery - Alberto IT ===
Contributors: albertosoliman
Tags: woocommerce, shipment tracking, delivery, order tracking, driver
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 3.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Tracking page for WooCommerce orders: carrier links, automatic DHL/UPS status, own-driver delivery with optional live map, drop-off place choice.

== Description ==

* Customer tracking page with progress steps and carrier link.
* Customers choose a drop-off place and leave a note.
* Own delivery: drivers open a private link (optional PIN) on the phone, start a delivery, send their position and finish with an optional photo.
* Optional live map and arrival estimate (off by default, see External services).
* Automatic status for DHL and UPS with your own API keys. Other carriers are link only.
* Customer pages in German, English, Polish, Turkish, Russian and Arabic. The admin screen is currently German.
* Tracking link in order e-mails. Pages are set to noindex and are not cached.

Shortcodes: `[aitlt_tracking]` (customer page) and `[aitlt_driver]` (driver page). The old names `[fox_tracking]` and `[fox_driver]` still work.

Carrier names (DHL, UPS, Hermes, GLS, DPD, FedEx) are trademarks of their owners. This plugin is not affiliated with them.

== External services ==

All of these are off unless you use the feature.

1. OpenStreetMap tile server (tile.openstreetmap.org). Used only when "Live map" is enabled by the shop owner. The visitor's browser loads map tiles while an own delivery is running, which sends the visitor IP address and the requested tile. Terms: https://operations.osmfoundation.org/policies/tiles/ Privacy: https://wiki.osmfoundation.org/wiki/Privacy_Policy
2. Nominatim (nominatim.openstreetmap.org). Used only when "Live map" is enabled. The shipping address of an own-delivery order is sent once to get coordinates. Terms: https://operations.osmfoundation.org/policies/nominatim/
3. DHL Shipment Tracking API (api-eu.dhl.com). Used only if you enter a DHL API key. The tracking number is sent. https://developer.dhl.com
4. UPS Tracking API (onlinetools.ups.com). Used only if you enter UPS credentials. The tracking number is sent. https://developer.ups.com
5. PayPal donation link in the settings screen. Only a link, nothing is sent until you click it. The box can be hidden in the settings.

The shop owner should mention enabled services in the privacy policy.

== Installation ==

1. Upload the folder to `/wp-content/plugins/` and activate. WooCommerce is required.
2. Create two pages with `[aitlt_tracking]` and `[aitlt_driver]`. Default slugs: sendungsverfolgung and fahrer.
3. Open AIT Liefertracker in the admin menu.

== Frequently Asked Questions ==

= Is the map active by default? =
No. Enable it under "Lieferzeit & Live".

= Does it work with HPOS? =
Yes.

== Third party ==

Leaflet 1.9.4, BSD 2-Clause, bundled in assets/leaflet (https://leafletjs.com).

== Changelog ==

= 3.3.0 =
* New tab Liefergebiet: orders in your delivery area (city and/or postal codes, editable) go to own delivery with driver and live map, all others to a chosen carrier. Chosen automatically at checkout, manual override per order.

= 3.2.1 =
* Own cache-busting parameter for scripts and styles.

= 3.2.0 =
* Developer hooks for add-ons: aitlt_delivery_started, aitlt_driver_ping, aitlt_delivery_done, aitlt_driver_item, aitlt_eta_data().

= 3.1.1 =
* New: buttons in the settings to create the tracking and driver pages with one click, and open them.

= 3.1.0 =
* Renamed for the plugin directory, GPL licence, prefix aitlt_.
* Leaflet bundled, no CDN. Scripts and styles enqueued.
* Live map and credit line are opt-in. Data of earlier versions is migrated.
* Input handling hardened, uninstall cleanup added.
