=== Flexsee AI for WooCommerce ===
Contributors: flexsee
Tags: woocommerce, ai, recommendations, analytics, marketing, machine-learning
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 8.0
WC tested up to: 10.8

Connect WooCommerce to Flexsee AI for behavioral tracking, catalog sync, and AI-powered product recommendations.

== Description ==

**Flexsee AI for WooCommerce** links your self-hosted store to the [Flexsee](https://flexsee.ai) platform. Train machine-learning models on your commerce and behavioral data, then activate predictions through email and ad channels.

= Features =

* **Store pairing** — secure store-key connection to your Flexsee organization
* **Catalog sync** — products, customers, and orders pushed to Flexsee automatically
* **Real-time updates** — WooCommerce webhooks keep Flexsee in sync when data changes
* **Behavioral tracking** — product views, add-to-cart, and checkout events from your storefront
* **HPOS compatible** — works with WooCommerce High-Performance Order Storage
* **Dashboard workflows** — train models and activate Klaviyo, Mailchimp, or Meta campaigns in Flexsee

= How it works =

1. Create a Flexsee account at https://dashboard.flexsee.ai
2. Generate a store key under **Integrations → WooCommerce**
3. Install this plugin and paste the store key in **Flexsee AI** settings
4. Click **Activate connection** to register webhooks and run an initial full sync
5. Use the Flexsee dashboard to train models and activate marketing destinations

Billing and subscriptions are managed at flexsee.ai (free plugin; paid Flexsee plans apply).

== Installation ==

1. Install and activate [WooCommerce](https://wordpress.org/plugins/woocommerce/).
2. Install **Flexsee AI for WooCommerce** from the WooCommerce Marketplace or upload the plugin zip.
3. Create a Flexsee account at https://dashboard.flexsee.ai/signup
4. In Flexsee, open **Integrations → WooCommerce** and click **Generate store key**.
5. In WordPress, go to **Flexsee AI** in the admin menu.
6. Paste the store key, leave the API URL as `https://api.flexsee.ai` (production), and click **Save settings**.
7. Click **Activate connection** to register webhooks and sync your catalog.

== Frequently Asked Questions ==

= Do I need a Flexsee account? =

Yes. The plugin connects your WooCommerce store to an existing Flexsee organization. Sign up free at https://dashboard.flexsee.ai/signup

= Does this work with HPOS? =

Yes. The plugin declares compatibility with WooCommerce High-Performance Order Storage (custom order tables).

= Where is billing handled? =

Subscriptions and usage billing are managed on flexsee.ai. This plugin is free to install; Flexsee plan pricing applies on the dashboard.

= What data does Flexsee receive? =

Product catalog, customer and order records, and anonymized storefront behavioral events (page views, product views, cart actions). See https://flexsee.ai/privacy-policy

= Does the plugin work with Cart and Checkout blocks? =

Yes. Storefront tracking runs via a lightweight JavaScript snippet on all shop pages, including block-based cart and checkout.

== Privacy ==

This plugin transmits store catalog data, order metadata, and behavioral events to Flexsee servers when a store key is configured. Data is processed according to the Flexsee privacy policy: https://flexsee.ai/privacy-policy

Merchants are responsible for informing customers and obtaining consent where required by applicable law.

== Screenshots ==

1. Flexsee AI settings page with store key and connection status
2. Sync status showing products, customers, and orders synced
3. Flexsee dashboard WooCommerce integration with store key generation

== Changelog ==

= 1.0.2 =
* Fix admin settings output escaping for WooCommerce Marketplace security review (PHPCS)

= 1.0.1 =
* Update Tested up to (WP 7.0) and WC tested up to (10.8) for marketplace validation

= 1.0.0 =
* Initial WooCommerce Marketplace release
* Store key authentication, HPOS compatibility, webhook registration
* Full catalog sync and storefront behavioral tracking

= 0.2.0 =
* Store key authentication for secure Flexsee API pairing
* Modular plugin structure and production API defaults
* HPOS compatibility declaration
* Automatic product/order sync on save

= 0.1.0 =
* Initial development release

== Upgrade Notice ==

= 1.0.0 =
Initial marketplace release. Generate a store key in the Flexsee dashboard before activating.
