=== Ason Chat Button ===
Contributors: aytanasonteknolojicom
Tags: whatsapp, chat, click to chat, contact button, woocommerce
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 26.1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WhatsApp chat button with a ready message and an optional quick actions menu — no cookie, no external requests, cache friendly.

== Description ==

* **Floating button** in the bottom right or left corner, separately on desktop and phones. Size adjustable
  (default 48 px), distance from the side and bottom adjustable so it does not cover the reCAPTCHA badge or a
  "back to top" button.
* **Ready message by page.** On product pages: "Hello, I would like to get information about {title} ({url})".
  On other pages a general message. Placeholders: `{title}`, `{url}`, `{site}`.
* **Choose what a product page is:** WooCommerce products, pages or any custom content type.
* **Shortcode:** `[ason_chat_button]` adds an inline button anywhere, e.g. next to a "Request a quote" button.
  Optional `text` and `message` attributes.
* **WooCommerce:** optional button below the product summary.
* **Privacy note (optional):** a short note before the visitor goes to WhatsApp, with a link to your
  privacy notice. No cookie is set. The note is a text you write; it does not by itself make a site compliant
  with any law.
* **Cache friendly:** the link and the message are written into the page on the server, from the page itself
  (title, address, site name, language). The plugin outputs nothing that depends on the visitor, so page caches
  (LiteSpeed Cache and others) serve the right product name.
* **Quick actions menu (optional):** one floating "⋯" button instead of the WhatsApp button. It opens WhatsApp,
  Call, Email, Location, Cookie settings (Ason Consent) and Back to top; each action can be turned on or off and
  ordered. Accent colour, dark colour and corner radius are adjustable (0 = sharp corners), touch targets are at
  least 44 px. Overlapping buttons can be hidden while the menu is shown: the Ason Consent corner button, common
  theme "back to top" buttons and any selector you enter. The menu opens with the HTML Popover API and works
  without JavaScript (Esc and a click outside close it); a small optional script (under 1 KB, loaded only in this
  mode) closes the menu after an action and scrolls smoothly to the top (instantly with reduced motion).
* **Lightweight and accessible:** one small stylesheet (under 3 KB), no JavaScript for the floating button,
  inline SVG icons, no font or icon library. Keyboard and screen reader friendly.
* **Translation ready:** the interface is in English and can be translated on translate.wordpress.org. The
  texts you enter can be translated with Polylang, WPML or Ason Translate (string translation).

= Ason Chat Button PRO =

Ason Chat Button PRO is a separate, paid add-on. It is not distributed on WordPress.org and is installed on top of
this plugin. It adds:

* **Several agents** (up to 10), e.g. Sales and Service, each with its own WhatsApp number. Visitors choose an agent
  from a list, or rotation picks one agent at random on each page view.
* **Working hours** for each day of the week, in the site's time zone. Outside working hours the button is hidden or
  shows a "leave a message" note.
* **Messages and agents per language** (Polylang, WPML, Ason Translate).
* **An Elementor widget** for placing a chat button in Elementor layouts; it works with the free version of Elementor.
* **An optional click event** (`whatsapp_click`, and `call_click` for the Call action of the quick actions menu) for
  Google Tag Manager or Google Analytics 4. It is sent only when you turn it on and the visitor has given consent in
  Ason Consent. The event contains no phone number and sets no cookie.

All features listed above under Description are part of this free plugin and work without the add-on.
More information: [Ason Chat Button PRO](https://asonteknoloji.com/magaza/ason-chat-button-pro)

== External services ==

This plugin does not connect to any external service and sends no data to Ason Teknoloji or anyone else. It
contains no licensing, update or telemetry code.

The button is a link to WhatsApp (`https://wa.me/`, operated by WhatsApp LLC / Meta Platforms). Nothing is
sent until the visitor clicks it. When the visitor clicks, the browser opens WhatsApp with your number and the
prepared message (page name and page address); WhatsApp's terms apply: https://www.whatsapp.com/legal/terms-of-service
and https://www.whatsapp.com/legal/privacy-policy

== Installation ==

1. Install and activate.
2. Ason Teknoloji → Ason Chat Button: enter your WhatsApp number with the country code and save.
3. Optional: corner, size, devices, messages, privacy note.

== Frequently Asked Questions ==

= Does it work with LiteSpeed Cache or other page caches? =

Yes. Each page contains its own link, built on the server from the page itself. Nothing depends on the visitor.

= Does it set cookies or load scripts? =

It sets no cookies. The floating button adds one small stylesheet and a link. The optional quick actions menu
adds a second small stylesheet and a script under 1 KB.

= Is there a PRO version? =

Yes. Ason Chat Button PRO is a separate add-on offered by Ason Teknoloji; it is not distributed on WordPress.org. It
adds several agents, working hours, messages per language, an Elementor widget and an optional click event. This
plugin is complete on its own: every feature listed in the Description works without the add-on, and no feature of
this plugin is locked or limited.

== Screenshots ==

1. The floating WhatsApp button on a product page.
2. The optional quick actions menu, opened.
3. The settings screen: phone number, button position, size and devices.
4. The settings screen: ready messages and the optional privacy note.

== Changelog ==

= 26.1.5 - 2026-12-01 =
* Improved: Readme: the PRO add-on is described in a single section, and a new FAQ entry answers whether there is a PRO version.
* Improved: older changelog entries are moved to changelog.txt in the plugin folder. No change to how the plugin works.

= 26.1.4 - 2026-11-23 =
* Improved: Translations are loaded from translate.wordpress.org; the package no longer bundles its own language files.
* Improved: Ason menu: the Customers page is paginated on the server.
* Fixed: Ason menu: notices of other plugins are no longer moved or reprinted on Ason pages; they appear where WordPress shows them.
* Security: Ason menu: the Customers page shows orders and totals only to users who can view WooCommerce reports.

= 26.1.3 - 2026-11-18 =
* Improved: Licence notice updated: third-party services and free-version wording. No change to how the plugin works.
* Improved: Readme: a Screenshots section is added and the licence is written as "GPLv2 or later".
* Fixed: Readme: the Installation menu path is corrected.

= 26.1.1 - 2026-11-13 =
* New: the Apps page in the Ason menu lists all Ason plugins by group, with search. When more than five Ason plugins are active, the menu shows only the plugins you pin and the one you are working in.
* New: the Info page shows a summary from the active Ason plugins, Ason messages and available updates, in a White or Anthracite appearance.
* New: where it fits, a WordPress menu (Users, WooCommerce, Products, Settings, Comments) gets one shortcut to the related Ason page.
* Improved: pages of PRO add-ons without a licence are no longer listed in the menu; the Apps page marks them as locked.
* Improved: Turkish translations for the new screens.

= 26.1.0 - 2026-11-12 =
* Improved: switches to the new version numbering (26.1.0). Same code as 2766.0.2.3; no functional change.

= 2766.0.2.3 - 2026-11-11 =
* Improved: Readme: the external services note has its own section; the privacy note wording no longer names specific laws.
* Improved: the plugin address (Plugin URI) points to the plugin's page on asonteknoloji.com. No change to how the plugin works.

= 2766.0.2.2 - 2026-11-06 =
* Improved: clearer Turkish wording in the quick actions menu: the call action reads "Telefonla ara", the dark colour setting says it applies while the menu is open.

= 2766.0.2.1 - 2026-11-05 =
* New: quick actions menu. One floating "⋯" button opens WhatsApp, Call, Email, Location, Cookie settings (Ason Consent) and Back to top. Actions can be ordered and turned off; colours and corner radius are adjustable.
* New: overlapping buttons (Ason Consent corner button, theme "back to top" buttons, custom selectors) can be hidden while the menu is shown.
* New: the menu works without JavaScript; the optional script closes it after an action and respects reduced motion.

Older versions: [changelog.txt](https://plugins.svn.wordpress.org/ason-chat-button/trunk/changelog.txt)

== Upgrade Notice ==

= 26.1.5 =
Readme and changelog update only. No change to how the plugin works.
