=== LayoodWapi for WooCommerce ===
Contributors: layoodtechnologies
Tags: whatsapp, woocommerce, abandoned cart, order notifications
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

One-click connect to LayoodWapi — real-time abandoned-cart tracking and instant order-status events, no WP-Cron delay, no API keys to copy.

== Description ==

Connect this store to LayoodWapi in one click, right from your WordPress admin sidebar — no WooCommerce REST API key to generate by hand, nothing to paste in either direction. Get a connect code from your LayoodWapi WooCommerce settings page, paste it into this plugin's own "LayoodWapi" page, approve WooCommerce's one native permission screen, and you're done.

Once connected, this plugin adds two things the REST API alone cannot see:

* **Real pre-checkout abandoned-cart tracking** — captures a customer's phone number the moment they type it at checkout, before any order exists at all.
* **Instant order-status events** — fires the moment an order's status changes on this site, instead of waiting for WordPress's own background task scheduler (WP-Cron) to eventually deliver a webhook.

The plugin's own "LayoodWapi" admin page shows a live dashboard once connected — abandoned carts captured, order events sent, and when the last one went out.

= Requirements =

* WooCommerce, installed and active.
* Classic (shortcode) checkout for the phone-capture feature specifically — WooCommerce's newer block-based checkout isn't supported yet for that one piece; order-status events work either way.

== Installation ==

1. In WordPress admin: Plugins → Add New → Upload Plugin → choose this plugin's .zip → Install Now → Activate.
2. On your LayoodWapi WooCommerce settings page, click "Get Connect Code."
3. In WordPress admin, open the new "LayoodWapi" page in the sidebar, paste the code, and click Connect.
4. Approve the one WooCommerce permission screen. Done — no keys to copy.

Prefer manual setup instead? WooCommerce → Settings → Integrations → LayoodWapi still accepts a pasted Endpoint URL and API Token from your LayoodWapi WooCommerce settings page.

== Changelog ==

= 1.2.0 =
* New: a "LayoodWapi Tracking" box on the order edit screen — enter a tracking number/link from an offline or local courier (one with no WooCommerce integration of its own), and LayoodWapi sends it to the customer over WhatsApp automatically.

= 1.1.0 =
* New: one-click "Connect to LayoodWapi" — no more manually generating a WooCommerce REST API key or copying values between WordPress and LayoodWapi in either direction.
* New: a live dashboard on the plugin's own admin page (abandoned carts captured, order events sent, last event time).
* Manual key entry (WooCommerce → Settings → Integrations → LayoodWapi) still works as a fallback.

= 1.0.0 =
* Initial release.
