=== Chatalix – AI Sales Chat for WooCommerce ===
Contributors: ravimareedu
Tags: woocommerce chat, ai chatbot, live chat, chat widget, order tracking
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI sales chat widget for WooCommerce: real product recommendations with photos and prices, order tracking, and every chat in your unified inbox.

== Description ==

The Tech Pad **Chatalix – AI Sales Chat for WooCommerce** adds an AI-powered chat widget to your storefront. Visitors ask about products and orders in plain language — the AI answers from YOUR live catalog and order data, right on your site.

* **AI sales assistant** — "Do you have snowboards under $200?" The AI searches your live WooCommerce catalog and replies with product cards: photo, price, sale badge and a link.
* **Order tracking in chat** — "Where is my order #1042?" The AI verifies the checkout email and shows the real order status. A bare order number never leaks anything.
* **One unified inbox** — every web chat lands in the same Tech Pad inbox as your WhatsApp conversations, with AI Copilot/autopilot, human handoffs, campaigns and automations.
* **Zero setup, zero API keys** — connect with your admin email (the plugin creates your free Tech Pad workspace and store connection automatically) or with an 8-character code from your dashboard. No WooCommerce REST keys, no tokens: product and order lookups are served by this plugin on your own site, so customer data never leaves your store.
* **Offer promotion** — the AI pushes your current offers (headline + code) set in the dashboard.
* **Merchant alerts** — get an email when a new chat lead or handoff happens (optional, per-widget).
* **Free to start** — sign up at thetechpad.com (free plan), connect your store, done. Remove the "Powered by" link for a one-time $10 per domain.

The chat window look (title, colours, greeting, pre-chat form, AI mode) is managed from your Tech Pad dashboard — this plugin connects your store and puts the widget on it.

== Installation ==

1. Upload the `chatalix-ai-sales-chat-for-woocommerce` folder to `/wp-content/plugins/`, or install the plugin through WordPress → Plugins → Add New.
2. Activate the plugin (WooCommerce must be active for product cards and order tracking).
3. Open **The Tech Pad → Chatalix AI Sales Chat (Woo)**. Connect with your admin email (a magic link opens your inbox), or log in at thetechpad.com → Web Chat settings → Sales AI → **Connect WooCommerce store** to get an 8-character code and paste it.
4. Make sure **Show chat widget** is on. Done — the AI chat appears on your storefront.

== External services ==

This plugin connects your store to **The Tech Pad** (thetechpad.com), the messaging workspace that hosts the chat. The connection is required: the chat window, inbox, AI replies and agent handoffs are provided by the service.

* **What the service is used for:** the chat button loads a small widget script from The Tech Pad that opens the chat panel on your storefront; conversations land in your Tech Pad team inbox (web chat and, when a number is connected, WhatsApp), where AI Copilot and human agents reply.
* **What data is sent, and when:**
  * On connect: the admin email you entered, your site URL and site name, so the workspace and store connection can be created and this storefront allowed.
  * When a visitor chats: their messages and the page they are on go to The Tech Pad so the AI can answer. Product and order lookups are answered by this plugin on your own site (WooCommerce database) — the store's customer data is not copied to the service; only the details needed to compose a reply are passed in the conversation.
  * Optional merchant alerts: The Tech Pad sends you an email when a lead or handoff happens (only if you enable it per widget).
  * The widget script is loaded from `thetechpad.com/chat/widget.js` on pages where the chat is shown.
* **How it is protected:** all traffic goes over HTTPS. The Tech Pad's [Terms of Service](https://thetechpad.com/terms) and [Privacy Policy](https://thetechpad.com/privacy) apply to this service.

== Frequently Asked Questions ==

= Do I need WooCommerce REST API keys? =

No. The plugin reads products and orders directly from your WooCommerce database and serves them to the chat through a token-protected endpoint on your own site. No consumer keys, no secrets to manage.

= Where do the chat conversations go? =

Into your Tech Pad workspace inbox (channel: web chat) — the same inbox as your WhatsApp conversations. Reply from the inbox and the visitor sees it in the widget in real time.

= Can the AI really answer product questions? =

Yes. When a visitor asks about products, the AI searches your live catalog (title, price, stock, sale) and answers with rich product cards. It only ever answers from your actual catalog — never invented products or prices.

= Can visitors track their orders in chat? =

Yes. The visitor gives their order number and the email used at checkout; the AI verifies the email and shows the real order status and items. Without a matching email, no order details are ever revealed.

= What data is sent to The Tech Pad? =

Visitor chat messages and the page they are on, so the AI can answer. Product and order data is read by the plugin on your own site at chat time and is not copied to the service. See the "External services" section above for the full details and links to The Tech Pad's Terms of Service and Privacy Policy.

= Is there a free plan? =

Yes. The plugin is free, and the web chat + AI is free on the Tech Pad free plan. The widget shows a small "Powered by The Tech Pad" link that can be removed for a one-time $10 per domain.

= Which browsers and themes are supported? =

All modern browsers. The widget works with any WordPress theme and page builder (Elementor, WooCommerce blocks, etc.) — it loads in the footer and does not touch your layout.

== Screenshots ==

1. Connect your store with an email or an 8-character install code.
2. Choose the launcher icon, position and colours for the chat button.
3. A visitor asks about a product and gets a live product card with photo, price and link.
4. A visitor tracks an order in the chat after entering the checkout email.
5. The conversation in your Tech Pad inbox, next to your WhatsApp chats.
6. The chat widget on a storefront product page, and on mobile.

== Changelog ==

= 1.1.6 =
* Fix: the settings screen under The Tech Pad opens again. On a site where
  this plugin was the first Tech Pad plugin installed, its menu row opened
  the shared page instead of this plugin's own screen, so the tabs and
  buttons answered "Sorry, you are not allowed to access this page".
  The row is labelled **Chatvio AI Webchat** and opens the plugin's screen;
  the first row of the menu is **The Tech Pad**, a short list of every
  Tech Pad plugin you have installed.

= 1.1.5 =
* The settings screen now lives in one place: **The Tech Pad → Click to
  AI Chat (Woo)**. It used to be listed twice (under WooCommerce and
  again under Settings); the old Settings link still works.

= 1.1.4 =
* Fix for WordPress.org Plugin Check: the notice shown in the admin
  when another Tech Pad chat plugin is already displaying the button
  used a text domain that did not belong to this plugin. It now uses
  this plugin's own text domain. The wording, the button and every
  setting are unchanged.

= 1.1.3 =
* One floating chat button per page, always: if you also run one of our
  other chat plugins, the two no longer both appear — the store-aware
  WooCommerce edition takes priority, and the other plugin says so in
  plain words on its own settings page. On a store with only this plugin
  installed nothing changes at all.

= 1.1.2 =
* Compatibility: the chat widget script is now loaded through the WordPress
  script API (enqueued and deferred) instead of a hard-coded script tag.
  Nothing changes for shoppers.
* Plugin folder renamed to `techpad-click-to-ai-chat-for-woocommerce` to match
  WordPress.org naming rules.
* Tested up to WordPress 7.1.

= 1.1.1 =
* Readme brought to WordPress.org directory standard: contributor credit, external-service disclosure with Terms of Service and Privacy Policy links, screenshot list and upgrade notice.

= 1.1.0 =
* New: connect automatically with just your email — the plugin creates your
  free Tech Pad workspace, mints the store token and allows this storefront in
  one step. No dashboard visit, no install code. A magic link opens your inbox.
* The install-code path stays available for existing Tech Pad accounts.

= 1.0.0 =
* Initial release: connect a WooCommerce store to The Tech Pad with an install code, embed the AI chat widget in shop mode, live product-card catalog + order tracking via the store's own REST endpoints.

== Upgrade Notice ==

= 1.1.6 =
Fix: the settings screen under The Tech Pad is reachable again (its tabs
and buttons work). No settings change.

= 1.1.5 =
The settings screen moved into The Tech Pad menu (one entry instead
of two). No settings change.

= 1.1.4 =
Fix for Plugin Check: one admin notice used the wrong text domain.
No settings or behaviour change.

= 1.1.3 =
Adds a shared launcher arbiter: with more than one of our chat plugins
active you now get one floating button per page instead of two. This
store edition takes priority. No settings change.

= 1.1.2 =
Compatibility and standards update: the widget script now loads through the WordPress script API and "Tested up to" is WordPress 7.1. No settings change.

= 1.1.1 =
Readme-only update bringing the plugin to WordPress.org directory standard. No settings or behaviour changed.
