=== SeeItOnYou AI Try-On for WooCommerce ===
Contributors: sectem
Tags: woocommerce, virtual try-on, ai, fashion, product
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.8
Stable tag: 1.0.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WooCommerce to SeeItOnYou for AI virtual try-on on product pages. Products, billing, and analytics are managed in your SeeItOnYou dashboard.

== Description ==

SeeItOnYou AI Try-On for WooCommerce links your store to the [SeeItOnYou](https://app.seeitonyou.com) hosted service. After a store administrator connects the store, the plugin syncs your catalog and renders a try-on button on enabled product pages.

**This plugin relies on a third-party service.** When you connect, data is sent to `https://app.seeitonyou.com`. Paid plans and billing are handled in the SeeItOnYou dashboard (Stripe), not inside WordPress.

= Features =

* Connect your WooCommerce store from **WooCommerce → SeeItOnYou**
* Automatic catalog sync on connect.
* Pull storefront button styles and per-product try-on settings from the dashboard
* Auto-insert try-on button on product pages.
* Dashboard SSO for merchants already connected

= External service & data =

By clicking **Connect to SeeItOnYou**, you consent to sending:

* Store URL, store name, and plugin version
* WordPress administrator email and display name (for account provisioning and dashboard sign-in)
* WooCommerce product data (titles, descriptions, images, variants, SKUs, categories, try-on settings)

When shoppers use try-on on the storefront, the hosted SeeItOnYou app (iframe) may process camera input and photos. That shopper data is handled by SeeItOnYou, not stored in WordPress by this plugin.

* Service: [https://app.seeitonyou.com](https://app.seeitonyou.com)
* Privacy policy: [https://www.seeitonyou.com/privacy-policy](https://www.seeitonyou.com/privacy-policy)
* Terms of service: [https://www.seeitonyou.com/terms-of-service](https://www.seeitonyou.com/terms-of-service)

No plugin can guarantee legal compliance for your website. This plugin helps integrate SeeItOnYou; merchants remain responsible for their own privacy and legal obligations.

= Requirements =

* WooCommerce active
* HTTPS on the WordPress site
* Outbound HTTPS to `https://app.seeitonyou.com`
* WordPress REST API routes available (not blocked by firewall or security plugins)

== Installation ==

1. Upload the plugin zip via **Plugins → Add New → Upload Plugin**, or install from the WordPress.org directory.
2. Activate the plugin.
3. Ensure WooCommerce is installed and active.
4. Open **WooCommerce → SeeItOnYou** and click **Connect to SeeItOnYou**.
5. Complete the connection in the SeeItOnYou dashboard (opens in your browser).
6. Enable try-on for products in **Dashboard → Products**.

== Frequently Asked Questions ==

= Does this plugin work without SeeItOnYou? =

No. The try-on experience and product configuration require an active connection to the SeeItOnYou hosted service.

= Is try-on free? =

The plugin is free to install. SeeItOnYou plans and billing are managed in your SeeItOnYou dashboard.

= Where do I enable try-on for a product? =

In the SeeItOnYou dashboard under **Products**. Settings sync back to WooCommerce automatically.

= The button does not appear on my product page =

Confirm the product is enabled for try-on in the dashboard, the store is connected, and **Show try-on button on product pages** is enabled under **WooCommerce → SeeItOnYou**. Some themes need the **SeeItOnYou Try-On** block or `[seeitonyou_tryon]` shortcode instead of auto-insert.

= What REST routes should I allow through my firewall? =

Allow `/wp-json/seeitonyou/v1/*` and outbound requests to `https://app.seeitonyou.com`.

= How do I disconnect? =

Open **WooCommerce → SeeItOnYou** and click **Disconnect**.

== Screenshots ==

1. Connect screen in WooCommerce admin
2. Connected store status with dashboard links
3. Try-on button on a product page

== Changelog ==

= 1.0.4 =
* Updated Tested up to for WordPress 7.1 (WordPress.org automated scan)

= 1.0.3 =
* Removed WordPress.org directory listing assets (banners, icons, screenshots) from the plugin package; these will be uploaded to SVN assets/ after approval

= 1.0.2 =
* Connect challenge requires HMAC auth header from the SeeItOnYou dashboard (no anonymous access)

= 1.0.1 =
* Privacy erase limited to the connecting administrator email
* Connect challenge only signs the pending session token
* Directory listing assets excluded from the distribution zip
* Removed redundant load_plugin_textdomain for WordPress.org

= 1.0.0 =
* Initial public release for WordPress.org
* WooCommerce connect flow, catalog sync, and storefront try-on button
* Gutenberg block and shortcode support
* Privacy policy suggestions and personal data export/erase hooks

== Upgrade Notice ==

= 1.0.4 =
Readme compatibility update for WordPress 7.1. No functional changes.

= 1.0.3 =
Packaging fix for WordPress.org directory review. No functional changes for connected stores.

= 1.0.2 =
Hardens the connect-challenge REST endpoint for WordPress.org review.

= 1.0.1 =
Privacy and packaging fixes for the WordPress.org review.

= 1.0.0 =
Initial release. Connect your store under WooCommerce → SeeItOnYou after upgrading.
