=== Qyvo Connector for WooCommerce ===
Contributors: qyvo
Tags: woocommerce, whatsapp, marketing, abandoned cart, automation
Requires at least: 5.8
Tested up to: 6.9
Requires Plugins: woocommerce
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WooCommerce store to Qyvo for WhatsApp marketing automation and abandoned cart recovery.

== Description ==

Qyvo Connector for WooCommerce links your store to the [Qyvo](https://www.qyvo.io) WhatsApp marketing platform. It keeps your products, customers, orders, and pages in sync, and detects abandoned carts so Qyvo can run automated WhatsApp recovery sequences.

A free Qyvo account is required to use this plugin.

**Features:**

* Real-time product, page, customer, and order sync
* Abandoned cart detection with secure recovery URLs
* Automated WhatsApp sequences powered by Qyvo
* One-click pairing — no API keys to copy by hand
* HPOS-compatible (High-Performance Order Storage)

**How it works:**

1. Create a free account at [qyvo.io](https://www.qyvo.io) and generate a pairing code in your Qyvo dashboard.
2. Paste the code in this plugin's settings (WooCommerce → Qyvo) and click Connect.
3. Your store data syncs automatically and Qyvo can start sending WhatsApp campaigns and recovery messages.

== Installation ==

1. Install the plugin from the WordPress Plugin Directory, or upload the folder to `/wp-content/plugins/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **WooCommerce → Qyvo**.
4. Paste the pairing code from your [Qyvo dashboard](https://www.qyvo.io) and click **Connect**.

== Frequently Asked Questions ==

= What is Qyvo? =
Qyvo is a WhatsApp marketing platform for e-commerce businesses. See [qyvo.io](https://www.qyvo.io) for details.

= Do I need a Qyvo account? =
Yes. The plugin pairs your WooCommerce store with a Qyvo workspace. You can create one for free at [qyvo.io](https://www.qyvo.io).

= What data is sent to Qyvo? =
Products, pages, customers (including billing email and phone), orders, and abandoned cart information. See the External Services section below for the full breakdown.

= How does abandoned cart recovery work? =
The plugin records cart sessions and, after a configurable delay, sends carts that have a customer email or phone to Qyvo with a secure recovery token. Qyvo then triggers the WhatsApp recovery sequence configured in your dashboard.

= Is my data secure? =
All communication with Qyvo uses HTTPS. Your site is identified by a unique site token issued during pairing, stored as a WordPress option. WooCommerce REST API credentials generated for Qyvo are stored using WooCommerce's standard mechanism.

= What happens when I disconnect or uninstall? =
Disconnecting notifies Qyvo and clears the local pairing tokens. Uninstalling additionally drops the abandoned cart tracking table and removes all plugin options.

== External Services ==

This plugin relies on the Qyvo API to deliver its features. By connecting your store, you authorize the plugin to send data to Qyvo.

**Qyvo API**

* Service URL: `https://www.qyvo.io`
* Data sent:
    * Site URL and site name (during pairing only)
    * Product data (id, name, price, images, stock, categories)
    * Page data (title, slug, content excerpts)
    * Customer data (id, name, billing email, billing phone, addresses)
    * Order data (id, totals, line items, status, customer reference)
    * Abandoned cart data (cart contents, customer email/phone if available, recovery token, totals, currency)
    * WooCommerce REST API consumer key and secret (generated by this plugin so Qyvo can read store data on demand)
* When: at pairing time, on every relevant WooCommerce event (product update, order update, cart update), and on a 5-minute cron for abandoned-cart detection.
* Why: required to keep your Qyvo workspace in sync with your store and to trigger WhatsApp campaigns and abandoned cart recovery.

By using this plugin you agree to the Qyvo Terms of Service and Privacy Policy:

* [Qyvo Terms of Service](https://www.qyvo.io/terms)
* [Qyvo Privacy Policy](https://www.qyvo.io/privacy)

== Screenshots ==

1. Connect your WooCommerce store to Qyvo from the WooCommerce → Qyvo settings screen.
2. Once paired, the plugin shows the connection status and a one-click disconnect option.

== Changelog ==

= 1.0.0 =
* Initial release.
