=== TechPad – Click to AI WhatsApp Chat ===
Contributors: thetechpad
Tags: click to whatsapp, whatsapp button, whatsapp chat, whatsapp widget, floating whatsapp, whatsapp support, woocommerce whatsapp, ai chat
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put a floating WhatsApp button on your WordPress site in two minutes. Number, pre-filled message, 8 ready-made icons, any position, animations, display rules and WooCommerce product buttons. No API keys.

== Description ==

The Tech Pad **Click to AI WhatsApp Chat** plugin adds a floating WhatsApp button to your WordPress site — with every option the popular WhatsApp button plugins give you, in one free plugin:

* **Your number, your message** — set the WhatsApp number (with country code) and a pre-filled first message so visitors know exactly what to say.
* **8 ready-made icons** — WhatsApp logo, bubble, headset and more, or upload your own image/GIF.
* **Any position** — bottom-right, bottom-left, bottom-centre, side-centre, top corners or fully custom offsets. Separate position and size for **desktop and mobile**.
* **Animations** — pulse, bounce, shake or ring to draw attention.
* **Display rules** — show on the whole site or only on chosen pages, hide on specific post types, limit to desktop/mobile, show only to logged-in users or guests, delay by time or scroll, and business-hours scheduling.
* **WooCommerce integration** — a WhatsApp button on product pages (floating, after "Add to cart" or after product meta), on shop and archive pages, and even on every product card — with dynamic **{PRODUCT_NAME}**, **{PRODUCT_PRICE}** and **{PRODUCT_URL}** variables.
* **Dynamic variables** — {SITE_TITLE}, {SITE_URL}, {PAGE_TITLE} and {PAGE_URL} anywhere in the pre-filled message.
* **Shortcode** — drop an inline button anywhere with `[techpad_ai_whatsapp]`.
* **Google Analytics** — optional dataLayer event on every click.
* **Zero setup friction** — no API keys, no accounts, no sign-up. Enter your number and save.

Replies come straight back to your phone. When you're ready for a shared team inbox, automations, AI Copilot and campaigns on WhatsApp, connect your number to **The Tech Pad** (thetechpad.com) — this button and every Tech Pad connector work together.

== Installation ==

1. Upload the `techpad-click-to-ai-whatsapp-chat` folder to `/wp-content/plugins/`, or install the zip via **Plugins → Add New → Upload Plugin**.
2. Activate the plugin.
3. Go to **Settings → Click to AI WhatsApp Chat**.
4. Enter your WhatsApp number (country code + number, digits only, e.g. `919876543210`).
5. Pick an icon, position and animation, then **Save settings**.
6. Use the **Preview button** link to see the button on your site.

That's it — the button appears on your site immediately.

== Frequently Asked Questions ==

= Does this need an API key or account? =

No. The button opens a normal WhatsApp chat (wa.me) with your number — no API, no account, no cost per message.

= How do I add the country code? =

Type the full international number without +, spaces or dashes. Example: India `919876543210`, UK `447911123456`, US `12025550179`.

= Can I show the button only on some pages? =

Yes. Under **Display rules** choose "Only on the pages listed below" and enter page URLs or IDs (one per line). You can also hide the button on specific post types, limit it to desktop or mobile, and schedule business hours.

= Does it work with WooCommerce? =

Yes. Enable the WooCommerce tab options to add buttons on product pages (with product name, price and URL in the message), shop/archive pages and product cards.

= Can I change the icon? =

Yes — pick from 8 ready-made icons or upload your own image/GIF. Change the button background and icon colours with the colour pickers.

= Can I add the button inside a page, not floating? =

Yes — use the shortcode `[techpad_ai_whatsapp]` (options: `number`, `message`, `size`, `icon`, `label`, `color`) anywhere in your content.

== Changelog ==

= 1.0.0 =
* Initial release. Floating WhatsApp button with number, pre-filled message, 8 icons, custom icon upload, colours, shapes, desktop/mobile positions, animations, display rules, business hours, WooCommerce product/archive/card buttons, shortcode, GA tracking and custom CSS.
