=== ThanklyClub – Thank-You Page Gifts for WooCommerce ===
Contributors: thanklyclub
Tags: woocommerce, thank you page, post purchase, upsell, monetization
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Earn from every order. Show customers a relevant partner gift on the thank-you page and in the order email. AI picks what fits your store — you decide.

== Description ==

After checkout, your customer sees "A gift with your order": a free month of a fitness app, free delivery, a discount at a partner. When they claim it, the partner pays and you get a share.

* **AI store analysis** — ThanklyClub reads your categories, products and prices, then recommends which partner categories fit your customers and blocks the ones that would compete with your own products.
* **You stay in control** — follow the AI, or force any category on or off. Block specific competitor domains.
* **Thank-you page and order emails** — the same gifts in both places.
* **Privacy first** — no customer names, emails, addresses or phone numbers ever leave your store.
* **Safe by default** — gambling, crypto trading, loans, tobacco and adult offers are never shown. Banking, insurance, health, alcohol and dating only appear if you switch them on.
* **Never breaks checkout** — if the network is unreachable, the page simply shows without gifts.

Demo mode works without an account so you can see everything before connecting.

== External services ==

When a site key is set and demo mode is off, this plugin connects to the ThanklyClub API (https://thanklyclub.com):

* when you click "Run AI analysis": store name, tagline, product categories, product titles and prices;
* on each new order: product categories (and product titles if enabled), order value range, currency, billing country and site language;
* impression and click events.

No personal customer data is sent. Terms: https://thanklyclub.app/terms — Privacy: https://thanklyclub.app/privacy

== Installation ==

1. Upload the `thanklyclub` folder to `/wp-content/plugins/` or install the zip via Plugins → Add New.
2. Activate. WooCommerce must be active.
3. Go to ThanklyClub → Dashboard and click "Run AI analysis".
4. Review Offer categories, then connect your site key under Connection.

== Frequently Asked Questions ==

= Will gifts send my customers to competitors? =
No. The analysis blocks retail categories that overlap with what you sell, and you can block any domain.

= My order confirmation page is built with blocks and the gifts do not appear =
Add the `[thanklyclub_offers]` shortcode to the order confirmation template.

== Changelog ==

= 0.1.0 =
* First version: AI analysis, category rules, thank-you page and email placement, click tracking, demo mode.
