=== PopWeaver – Popups, bars and forms ===
Contributors: fluidifia
Tags: popup, banner, newsletter, quote, woocommerce
Requires at least: 6.1
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Useful popups, bars and forms for WooCommerce: closures, shipping delays, size guides, quote requests, newsletter with double opt-in.

== Description ==

PopWeaver shows the right message at the right place: a holiday closure, a shipping delay, a size guide, a short product quiz, a quote request that arrives with the product attached, a newsletter sign-up with double opt-in.

* 16 ready-made templates and 60 themes, previewed with your own message.
* 7 display formats: bar, slide-in, modal, bottom sheet, launcher button, inline block…
* Targeting by page, product, category, cart, language and device; scheduled start and end dates.
* An optional AI assistant that drafts and translates texts; nothing is published without your click.
* Forms and an inbox for answers, with CSV export.
* Free plan to start.

PopWeaver is a service: campaigns are designed in the PopWeaver app (it opens in a new tab from your WordPress admin, signed in with your WordPress account) and shown on your store by this plugin.

== External services ==

This plugin connects your store to the PopWeaver service, operated by Fluidifia at https://popweaver.fluidifia.com. Nothing is sent before an administrator clicks "Connect PopWeaver".

* When you connect: your store address, the address of this plugin's API, the plugin version and the protocol version.
* Once a day and after an update: plugin, WordPress, WooCommerce and PHP versions, and whether a page cache is active (no personal data).
* When a page of your store loads: the page type, the product viewed, a cart summary (number of items, total, product ids), the id of the signed-in customer if any, and the visitor's IP address for rate limiting (never stored). The service answers with the campaigns to show.
* When a visitor submits a PopWeaver form: the answers, sent to and stored by the service on behalf of the store.
* When the service needs your catalog (product picker, AI assistant): it calls this plugin's API, signed with a secret specific to your store, and reads published products, categories, tags, pages and the store name, currency and admin email.
* When you delete the plugin: the service stops serving the store and erases its data 48 hours later.

Terms of service and privacy policy: https://popweaver.fluidifia.com/privacy

== Source code ==

The storefront script (assets/popweaver.js and assets/popweaver-ui.js) is built from the TypeScript sources included in the source/ folder of this plugin, with Vite.

== Installation ==

1. Install and activate the plugin (WooCommerce must be active).
2. Open the PopWeaver menu and click "Connect PopWeaver", then confirm on the PopWeaver page.
3. Click "Open PopWeaver", create a campaign from a template and publish it.
4. For a campaign in the inline format, add the "PopWeaver" block to a page, or the shortcode [popweaver slot="your-key"].

== Frequently Asked Questions ==

= Does PopWeaver set cookies? =

PopWeaver remembers closed popups in the visitor's browser only with consent to preference cookies. It reads the choice of cookie banners compatible with the WP Consent API (Complianz, CookieYes, Cookiebot…). Without such a banner, it stays cautious unless you declare in the plugin options that your store does not need consent for preference cookies.

= Where are my campaigns and form answers stored? =

On the PopWeaver server. The plugin only keeps the store identifier and its secret, used to sign the exchanges.

= Is it compatible with page caching? =

Yes. The page only carries facts that are the same for every visitor; the cart and the signed-in customer are read through an uncached request.

== Changelog ==

= 1.0.2 =
* Translation and connection fixes found while testing older versions.

= 1.0.1 =
* Compatible with WordPress 6.1+ and WooCommerce 7.1+.

= 1.0.0 =
* First release.
