=== Eshu for WooCommerce ===
Contributors: eshu
Tags: woocommerce, whatsapp, crm, order-notifications
Requires at least: 7.0
Requires PHP: 8.0
Requires Plugins: woocommerce
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect opted-in WooCommerce customers and order updates to Eshu.

== Description ==

Eshu for WooCommerce adds separate, optional checkout checkboxes for WhatsApp order updates and WhatsApp marketing. It works with classic checkout and the WooCommerce Checkout block. The plugin sends order and customer events to your Eshu account, syncs marketing contacts who opted in, and sends processing/completed order updates through your connected Eshu WhatsApp number.

The plugin requires an active Eshu Pro, Business, or Lifetime plan. All messages use your plan's quota and sending rules. Eshu API keys remain on the WordPress server; they are never sent to shoppers.

== Installation ==

1. Install and activate WooCommerce.
2. In WordPress, open Plugins > Add New > Upload Plugin and upload eshu-woocommerce.zip.
3. Activate Eshu for WooCommerce and open Settings > Eshu.
4. Create an API key in Eshu > Settings > API keys, paste it into WordPress, and choose a connected WhatsApp number.
5. Save settings and use Test connection.

Customers must explicitly check the relevant checkout box. Existing Eshu opt-outs are never reactivated by a sync. The contact sync runs hourly in batches of 25 orders; use Sync opted-in customers now to run a batch immediately.

== Frequently Asked Questions ==

= Does it work with the Checkout block? =

Yes. The plugin uses WooCommerce Additional Checkout Fields for the Checkout block, and checkout hooks for classic checkout.

= Will existing customers receive marketing? =

Only if an order contains an explicit Eshu marketing opt-in. Order update consent alone does not add a customer to marketing contacts.

= How are phone numbers formatted? =

The plugin uses the billing country to normalize local numbers into international format when possible. Numbers that cannot be normalized are skipped.

== Changelog ==

= 1.1.1 =

* Refresh the Eshu logo, plugin icon, banner and settings header.

= 1.1.0 =

* Add Checkout block consent fields, opted-in contact sync, order events, connection check, and retryable order updates.
