=== prAIcing Agent – AI Price Testing for WooCommerce ===
Contributors: praicing
Tags: pricing, ab testing, dynamic pricing, woocommerce, price optimization
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Goal-driven AI pricing agent. One-click connect, live 50/50 price tests within your guardrails, and a full audit trail.

== Description ==

You set the business goal (Maximize Profit, Sales or Volume) and the guardrails (margin floors, price limits). The prAIcing Agent tests prices with real shoppers, measures what works and keeps improving — Test, Measure, Learn, Optimize, Retest.

* One-click connection — no API keys to copy.
* Live 50/50 price tests: half of shoppers see the test price, enforced through cart and checkout.
* Works with page caching: tested products are served uncached.
* No duplicate products, so stock stays accurate.
* Sample-ratio checks stop tests whose traffic split looks wrong.
* Every change is logged and can be rolled back.

== External services ==

This plugin connects to the prAIcing service (https://praicing.com) to pair your store, fetch running price tests and send anonymous test events (product views, order units and revenue per test arm). No customer personal data is sent. A prAIcing account is required; plans include a free trial.
Terms: https://praicing.com/help — Privacy: https://praicing.com/help

== Installation ==

1. Plugins → Add New, search "prAIcing Agent", Install and Activate.
2. Open WooCommerce → prAIcing Agent and click "Connect to prAIcing".
3. Approve the connection — you return to WordPress ready to test.

== Frequently Asked Questions ==

= Is it free? =
The plugin is free. The prAIcing service has a free trial, then a paid subscription.

= Will shoppers see different prices? =
During a test, half of shoppers see the test price, always within your guardrails. Each shopper sees one price consistently.

== Changelog ==

= 1.0.2 =
* Schedule the hourly test-event flush only on plugin activation, not during plugins_loaded.
* Clear the test-event flush and legacy sync schedules on plugin deactivation.

= 1.0.1 =
* Declared compatibility with WordPress 7.1; aligned plugin name with directory listing.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.2 =
Fixes cron scheduling and deactivation cleanup. If upgrading an already active installation, deactivate and reactivate once to initialize the schedule.
