=== CartAgent AI ===
Contributors: wkdigital
Tags: woocommerce, ai, chatbot, shopping assistant, ai agent
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later

AI-powered shopping assistant for WooCommerce. Natural language chat widget that helps customers browse, search, add to cart, and checkout. Requires a free license key from cartagent.store.

== Description ==

CartAgent AI adds an intelligent shopping assistant to your WooCommerce store. Customers can chat naturally to:

* Search and browse products
* Get personalized recommendations
* Add items to cart
* Apply coupons
* Complete checkout (with agent payments enabled)

**Important:** This plugin requires a license key from [cartagent.store](https://www.cartagent.store). You can sign up for a free Starter plan (no credit card required) or choose a paid plan for more features. Visit [www.cartagent.store/#pricing](https://www.cartagent.store/#pricing) to get started.

= Features by Tier =

**Starter (Free)** — 50 AI sessions/month, personal shopper widget
**Growth ($29/mo)** — 500 sessions, cart & checkout in chat, coupon support, priority support
**Enterprise ($99/mo)** — 2,000 sessions, MCP & A2A protocols, Claude Sonnet AI model, agent payments

= AI Credits =

Need more sessions beyond your monthly allowance? Purchase AI credit packs from your dashboard at tier-specific pricing. Credits are used automatically when your monthly sessions run out.

= Agent Payments =

Configure your Stripe and/or Coinbase Commerce API keys to enable autonomous AI checkout.
The agent creates payment sessions using YOUR keys — funds go directly to your account.

== Installation ==

1. **Sign up** at [www.cartagent.store](https://www.cartagent.store/#pricing) to get your free license key
2. Upload the plugin ZIP via Plugins > Add New > Upload, or install from the WordPress plugin directory
3. Activate the plugin
4. Go to CartAgent AI in the admin menu
5. Enter your license key from cartagent.store
6. Configure your WooCommerce API keys (auto-generated during setup)
7. Optionally add Stripe/Coinbase keys for agent payments
8. Click Save & Activate

== Frequently Asked Questions ==

= Do I need to sign up at cartagent.store? =
Yes. CartAgent AI is a cloud-powered service. The plugin connects your WooCommerce store to our AI platform. You need a license key from [cartagent.store](https://www.cartagent.store) to activate it. The Starter plan is free.

= Can I install from the WordPress plugin directory? =
Yes, but you will still need to sign up at [cartagent.store](https://www.cartagent.store) to get your license key before the plugin will work.

= What happens if I run out of sessions? =
When you exceed your monthly session limit, the system automatically uses your credit balance (1 credit per extra session). If you have no credits, the chat widget pauses until the next billing cycle. You can purchase more credits from your dashboard.

== Changelog ==

= 1.2.0 =
* WordPress.org compliance: full escaping, sanitization, nonces
* Added uninstall.php for clean removal
* HPOS compatibility declared
* Internationalization (i18n) support
* Proper script/style enqueuing
* Removed custom updater (uses WordPress.org updates)

= 1.1.0 =
* Multi-tenant store support
* Tier-based tool gating
* Session metering with AI credits
* Agent payments (Stripe + Coinbase)
* Custom store instructions and descriptions

= 1.0.0 =
* Initial release
* Chat widget with iframe embed
* WooCommerce product search and cart management