=== Genlook AI Virtual Try-on ===
Contributors: genlook
Tags: woocommerce, virtual try-on, fashion, e-commerce
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 0.1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Virtual try-on for WooCommerce stores powered by Genlook.

== Description ==

Genlook connects your WooCommerce store to the Genlook virtual try-on platform. Shoppers can try products on from the product page using AI-powered fitting room technology.

Features:

* Virtual try-on button on enabled product pages
* Widget design customization (colors, copy, button label)
* Product and category-level try-on coverage controls
* Order attribution and store events for analytics
* Secure server-side API proxy (store API key never exposed to the browser)

Requires a Genlook merchant account and site API key from [app.genlook.app](https://app.genlook.app).

== Installation ==

1. Upload the `genlook-ai-virtual-try-on` folder to `/wp-content/plugins/` or install via the WordPress plugins screen.
2. Activate **Genlook AI Virtual Try-on** and ensure **WooCommerce** is active.
3. Open **Genlook → Setup wizard** in WP Admin.
4. Enter your **site API key** from the Genlook merchant dashboard.
5. Configure product coverage under **Genlook → Manage** and customize the widget under **Genlook → Widget Design**.

For local development, expand **Advanced connection settings** and set the backend base URL (e.g. `http://localhost:3100`).

== External services ==

This plugin requires Genlook to provide virtual try-on. A merchant account and site API key from [app.genlook.app](https://app.genlook.app) are required.

= Genlook (API, CDN, dashboard) =

**What:** Server API (`api.genlook.app`, configurable), storefront/admin scripts (`cdn.genlook.app`), and dashboard links (`app.genlook.app`).

**When & data:** Admin sync and billing use your API key server-side only. On enabled product pages, the CDN loads the try-on widget (product, locale, widget config, anonymous/session IDs for attribution). Storefront calls are proxied via `/wp-json/genlook/v1/public/*` so the API key never reaches the browser.

**Terms:** https://genlook.app/terms — **Privacy:** https://genlook.app/privacy — **Widget privacy:** https://genlook.app/privacy/widget

= Crisp (optional) =

**What:** Support chat on **Genlook → Support** only.

**When & data:** Loads from `client.crisp.chat` only after you click **Open support chat**. Sends store URL, hostname, and platform (`woocommerce`).

**Terms:** https://crisp.chat/en/terms/ — **Privacy:** https://crisp.chat/en/privacy/

== Frequently Asked Questions ==

= Do I need a Genlook account? =

Yes. Create a WooCommerce site at [app.genlook.app](https://app.genlook.app) and copy the site API key into the plugin setup wizard.

= Does the plugin work with Block Checkout? =

Yes. Order attribution supports both classic and WooCommerce Block Checkout.

== Changelog ==

= 0.1.5 =
* WordPress.org review fixes: structured button styling (no custom CSS field), wp_enqueue for storefront and preview assets, bundled local preview images, Crisp chat loads only on Support after explicit click, External services documentation in readme.

= 0.1.4 =
* Align translation text domain with plugin slug for WordPress.org Plugin Check.

= 0.1.3 =
* Rename plugin to Genlook AI Virtual Try-on; slug `genlook-ai-virtual-try-on`.

= 0.1.2 =
* WordPress Plugin Check compliance: license header, readme.txt, input sanitization, and script enqueue fixes.

= 0.1.1 =
* Initial public release.
