=== FLUF Connect ===
Contributors: yourfluf
Tags: crosslisting, woocommerce, vinted, depop, ebay
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Crosslist your WooCommerce products to Depop, eBay, Etsy, Vinted and 50+ marketplaces. Stock and orders stay in sync automatically.

== Description ==

**FLUF Connect** links your WooCommerce store to [FLUF.io](https://fluf.io), so the products you already manage in WordPress can be listed on 50+ marketplaces — without re-typing them, exporting spreadsheets or keeping a second inventory.

Marketplaces include:

* Depop, Vinted, eBay and Etsy
* Facebook Marketplace, Poshmark, Mercari, Grailed and Whatnot
* Vestiaire Collective, Amazon, TikTok Shop and Temu
* Wallapop, Leboncoin, Marktplaats, Kleinanzeigen, Allegro, Gumtree and Yaga
* and many more — see the [full list](https://fluf.io/integrations/)

When a product sells on any marketplace, FLUF takes it down everywhere else and updates your WooCommerce stock. Orders from every marketplace appear in one FLUF Connect dashboard, next to your WooCommerce orders.

= Inside WordPress =

* **FLUF Connect → Listings** (also under Products → FLUF Listings): every listing FLUF holds for you, on every marketplace. Search, filter by marketplace, and open any listing where it is live. Listings from this store link straight to their WooCommerce product.
* **Crosslist with FLUF** on the products list, as a row action and a bulk action: pick marketplaces and send products to FLUF without leaving WordPress.

= What FLUF does for you =

* Unlimited crosslisting on every paid plan.
* Inventory sync: a sale on one marketplace removes the item from the others, so you don't sell it twice.
* One orders feed across every marketplace you sell on.
* Category, condition and size mapping for each marketplace, done for you.
* AI listing creation from a photo.
* On the Pro plan: automatic relisting, offer management, smart pricing and listing boosts.

= How the plugin works =

This plugin is a **thin client**. It:

1. **Authorizes** your FLUF.io account through a secure OAuth-style handshake.
2. **Issues** a read/write WooCommerce REST API key for FLUF, so FLUF can read your products and orders and update stock.
3. **Registers WooCommerce webhooks** so FLUF reacts to product and order changes straight away.
4. **Shows** your FLUF listings and the Crosslist action inside WordPress, using the FLUF.io API.

All listing, sync, image processing, category mapping and marketplace logic runs on FLUF's servers. The plugin contains no proprietary business logic, by design.

= Requirements =

* WordPress 6.0 or later
* WooCommerce 7.0 or later
* PHP 7.4 or later
* An **HTTPS** site (the plugin will not connect over plain HTTP — your WooCommerce REST credentials must travel encrypted)
* A [FLUF.io](https://fluf.io) account: a 7-day trial for £1, then plans from £9/month

= Privacy =

This plugin does **not** contact fluf.io before you click Connect.

When you click **Connect**, the plugin:

* Sends your site URL to fluf.io as part of the handshake, so FLUF knows which site to talk to.
* Issues a WooCommerce REST API key locally and sends it to fluf.io over HTTPS.
* Registers WooCommerce webhooks that point at fluf.io.

When you click **Disconnect** (or uninstall the plugin), all of the above is reversed: the API key is deleted from your store, the webhooks are removed, and fluf.io is told to delete your stored credentials.

= Service documentation =

FLUF Connect is a client for the FLUF.io service. By connecting your store, you agree to:

* [FLUF.io Terms and Conditions](https://fluf.io/terms-conditions/) — what you and FLUF agree to.
* [FLUF.io Privacy Policy](https://fluf.io/privacy-policy/) — what data FLUF stores and processes, and your rights.
* [FLUF.io Pricing](https://fluf.io/pricing/) — current plans and what they include.

== Installation ==

1. Install the plugin from **Plugins → Add New** (search "FLUF Connect"), or upload the .zip.
2. Activate the plugin.
3. Open **FLUF Connect** in your WordPress admin menu (also under **WooCommerce → FLUF Connect**).
4. Click **Connect to FLUF** and authorize on fluf.io.
5. You return to your WordPress admin with a confirmation that the connection is live.
6. Connect your marketplaces in FLUF Connect, then crosslist from the dashboard or from **Crosslist with FLUF** on your products list.

== Frequently Asked Questions ==

= Does this slow down my WordPress site? =

No. All listing and sync work happens on FLUF's servers. The only extra traffic on your site is WooCommerce REST API reads (the same API your other plugins use) and the Listings screen when you open it.

= What happens if I deactivate the plugin? =

The API key and webhooks stay in place, so reactivating the plugin restores everything. To remove FLUF's access completely, click **Disconnect** before deactivating, or uninstall the plugin (uninstalling cleans up everything automatically).

= Can I use this without WooCommerce? =

No. FLUF Connect crosslists WooCommerce products. If you sell from a WordPress site without WooCommerce, contact us at [fluf.io/support](https://fluf.io/support/).

= Does it support variable products? =

Yes. Each variation (for example size S/M/L of a T-shirt) is treated as its own listable item on the marketplaces.

= Can I see my marketplace listings in WordPress? =

Yes. **FLUF Connect → Listings** shows every listing FLUF holds for you, on every marketplace, with a link to each live listing.

= How much does FLUF cost? =

New FLUF.io accounts start with a 7-day trial for £1, covering up to 100 active products. Plans then start at £9/month (Starter), and crosslisting is unlimited on every paid plan. Relisting, offer management and smart pricing are included from the Pro plan. There is no free plan. Full details: [fluf.io/pricing](https://fluf.io/pricing/).

= Is the plugin open source? =

Yes. It is licensed GPL-2.0-or-later, as WordPress.org requires.

== Screenshots ==

1. The FLUF Connect setup screen: a pre-flight readiness check confirms your store is ready, then one click starts the secure handshake — no credentials typed into forms or email.
2. Your unified FLUF Connect dashboard: sales, orders, revenue and sync activity across every connected marketplace, all in one place.

== Changelog ==

= 1.1.1 =
* Reconnecting revokes the previous WooCommerce API key after the new connection succeeds.
* Tested connection, reconnect and disconnect flows on WordPress 7.1 and WooCommerce 10.6.1.
* Binds each connection handshake to the administrator who started it. Invalid callbacks no longer consume a pending connection.
* Prevents authenticated service requests from forwarding credentials through HTTP redirects.

= 1.1.0 =
* New **FLUF Connect &rarr; Listings** screen: view every listing FLUF holds for you, across every connected channel, without leaving WordPress. Search, filter by channel and sort; open any listing on the marketplace it lives on. Also available under Products &rarr; FLUF Listings.
* Listings that exist in this store link straight to their WooCommerce product editor.
* New **Crosslist with FLUF** action on the products list, as both a row action and a bulk action &mdash; pick channels inline and send products to FLUF without opening the dashboard.

= 1.0.2 =
* More reliable connection when the plugin runs on the same host as the FLUF service — skips an unnecessary self-loopback REST probe that some CDNs blocked.
* Clearer error messages when the connection handshake fails, so it's obvious what to retry.

= 1.0.1 =
* More robust connection completion: the handshake now finalizes even if the `action` parameter is stripped from the return URL by a CDN or server rewrite rule (the security nonce is still verified, so this is no less safe).
* Tidied the connection screen copy and call-to-action styling.

= 1.0.0 =
* Initial release: OAuth-style handshake with FLUF.io, WooCommerce REST API key issuance, automatic webhook registration, clean disconnect/uninstall.

== Upgrade Notice ==

= 1.1.1 =
Security hardening for connection handshakes and authenticated service requests.

= 1.1.0 =
Adds a Listings screen and a "Crosslist with FLUF" action to the products list, so you can see and list across every channel from inside WordPress.

= 1.0.2 =
Improves connection reliability and error messaging. Recommended for all users.

= 1.0.1 =
More robust connection completion across CDNs and server rewrite configurations.

= 1.0.0 =
First public release.
