=== Wabl for WooCommerce ===
Contributors: wabl
Tags: whatsapp, woocommerce, order notifications, customer support, chat
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WooCommerce store to Wabl: reply to customers, send order updates over WhatsApp, and add a storefront WhatsApp button.

== Description ==

Wabl for WooCommerce connects your store to your Wabl account (a WhatsApp Business messaging service). Once connected, Wabl can:

* Let your team answer customer questions about their orders (status, shipping, past orders) inside your Wabl inbox.
* Send real-time order updates to customers over WhatsApp (order placed, status changed) using your approved WhatsApp templates.
* Show an optional floating WhatsApp button on your storefront, configured entirely from your Wabl dashboard.

You connect with a single pairing code: the plugin creates a read/write WooCommerce REST API key for Wabl automatically. No manual key copying.

A Wabl account is required. Sign up and manage everything at https://wabl.app. The plugin is free; Wabl is a paid subscription service with a trial.

== External services ==

This plugin connects your site to Wabl, a third-party WhatsApp messaging service operated at https://wabl.app. This connection is required for the plugin to function.

What is sent, and when:

* On connecting (when you click "Connect to Wabl"): your store URL and a newly created WooCommerce REST API key (consumer key/secret) are sent to https://wabl.app/api/store/woocommerce/pair so Wabl can read your catalog and orders on your behalf.
* When an order is created or its status changes: the order id, number, status, total, currency, and the customer's billing name, phone and email are sent to https://wabl.app/api/store/woocommerce/events so Wabl can notify the customer over WhatsApp.
* On your storefront (only if the WhatsApp button is enabled in your Wabl dashboard): the browser loads a small script from https://wabl.app/wa-widget.js and requests the button configuration for your store.

No data is sent to any other service. Data is transmitted over HTTPS.

Wabl terms of service: https://wabl.app/terms
Wabl privacy policy: https://wabl.app/privacy

== Installation ==

1. Install and activate the plugin.
2. Make sure WooCommerce is active.
3. In your Wabl dashboard (https://wabl.app/dash), open store integrations and generate a WooCommerce pairing code.
4. In WordPress, go to WooCommerce → Wabl, paste the pairing code, and click "Connect to Wabl".

== Frequently Asked Questions ==

= Do I need a Wabl account? =

Yes. The plugin is a connector to the Wabl service. Create an account at https://wabl.app.

= Is the plugin free? =

Yes, the plugin is free. Wabl itself is a subscription service that includes a trial.

= What data leaves my site? =

Only what is needed to reply to customers and send order updates: store URL, an API key you can revoke anytime, and order/customer contact details when an order changes. See the "External services" section above.

= How do I disconnect? =

Go to WooCommerce → Wabl and click Disconnect. The plugin removes the API key it created and stops sending data.

== Screenshots ==

1. The Wabl overview inside WooCommerce: what is included in your free trial and what a Wabl subscription unlocks.
2. Your approved WhatsApp templates, ready to send from any WooCommerce order.
3. Settings: your store connected to Wabl, with toggles for the "Send via WhatsApp" order button and the storefront WhatsApp button, plus quick links to your Wabl inbox.
4. The plugin's own Wabl menu (Overview, Templates, Settings) and the features included in your free trial.

== Changelog ==

= 1.0.0 =
* Initial release.
* Connect your store to Wabl with a single pairing code (the plugin creates a read/write WooCommerce REST API key automatically).
* Reply to customers over WhatsApp from your Wabl inbox.
* "Send via WhatsApp" button on each order: pick an approved template and send it to the customer in one click, without leaving WooCommerce.
* Real-time order updates: message the customer automatically when an order is placed or its status changes.
* Optional storefront WhatsApp button, configured from your Wabl dashboard.
* Own top-level Wabl admin menu with Overview, Templates, and Settings pages.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
