=== KustomParcelTracker WooCommerce Connector ===
Contributors: KustomCode
Tags: woocommerce, tracking, fleet, delivery, dispatch, parcel, hmac
Requires at least: 5.0
Tested up to: 8.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Standalone WooCommerce connector for KustomParcelTracker real-time fleet dispatch, HMAC-SHA256 payload signing, and customer live tracking.

== Description ==

KustomParcelTracker WooCommerce Connector seamlessly integrates your WooCommerce store with KustomFleet multi-tenant parcel dispatch backends.

Key Features:
* Auto-sync WooCommerce orders on status change (Processing, Completed, On Hold).
* HMAC-SHA256 payload signing for cryptographic verification.
* Injects clean branded live tracking cards into customer transactional emails.
* Synchronizes line items, total parcel weight (kg), and customer delivery address details.

== Installation ==

1. Upload `kustomparceltracker-wc.php` or `kustomparceltracker-wc.zip` to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to WooCommerce -> KustomParcelTracker to configure your API Endpoint, Tenant ID, and Webhook Secret.

== Frequently Asked Questions ==

= How do I get my Tenant ID? =
Your Tenant ID is configured in your KustomFleet enterprise dashboard (e.g. `corporate`).

= How is the live tracking link generated? =
When an order manifest is posted to KustomFleet, the API returns a unique tracking number (`TRK-XXXX`). A live webview link (`https://fleet.kustomcode.xyz/track/TRK-XXXX`) is saved directly in the WooCommerce order meta.
