=== CartApp - Chat Order for WooCommerce ===
Contributors: georgengissah
Tags: woocommerce, chat, orders, cash on delivery, mobile money
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 10.6
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let customers order directly by chat from your WooCommerce store. Built for African and emerging markets.

== Description ==

CartApp adds an "Order via Chat" button to WooCommerce product and cart pages. Customers can select a delivery area, enter contact details, and open a pre-filled order message containing products, quantities, variations, totals, delivery fee, delivery note, store name, and order time.

The plugin is designed for markets where direct chat is the primary business channel, cash-on-delivery is common, mobile money is widely used, and delivery is usually described by neighbourhood rather than postal code.

= Features =

* Chat ordering from product pages.
* Chat ordering from the cart page.
* Product variation and quantity support.
* Required delivery area selection when zones are configured.
* Delivery note or landmark field.
* Customer name and phone modal before the chat link opens.
* Copy order text fallback.
* Mobile floating order button option.
* Configurable message, button, modal, and delivery text.
* Optional non-personal order intent logs.
* WooCommerce Cart block and classic cart support.
* HPOS compatibility declaration.

== Installation ==

1. Upload the `cartapp-chat-order` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins screen in WordPress.
3. Make sure WooCommerce is installed and active.
4. Go to WooCommerce > CartApp or WooCommerce > Settings > CartApp.
5. Add your chat number and delivery zones, then test the product and cart buttons.

== Frequently Asked Questions ==

= Does CartApp require a business messaging API? =

No. CartApp uses standard wa.me links and opens a pre-filled message.

= Does this replace WooCommerce checkout? =

It can. You can hide the standard WooCommerce checkout button and show the CartApp button instead.

= Can customers pay through the plugin? =

No. Version 1.0.0 focuses on starting the order conversation by chat. Payment confirmation and mobile money automation are not included.

= Can I add delivery fees by neighbourhood? =

Yes. Use the Delivery Zones section to add active areas such as Osu, East Legon, or Lapaz with their delivery fees.

= Does it support product variations? =

Yes. Product-page messages update when the customer selects variation options and quantity.

= Does it store customer personal data? =

No. Customer name, phone, and delivery note are inserted into the order message in the browser. Optional order intent logs are non-personal and disabled by default.

= Will it work without WooCommerce? =

No. CartApp requires WooCommerce because it uses WooCommerce products, carts, and prices.

== Privacy ==

CartApp does not send customer data to any external service other than opening the customer's chat application or web chat with a pre-filled message after the customer chooses to continue.

Optional order intent logs are disabled by default. If enabled, CartApp stores non-personal records such as time, order context, product name, and selected delivery area. It does not store customer name, phone number, or delivery note.

== Screenshots ==

1. Chat order button on a product page.
2. Customer details modal before opening the chat link.
3. Cart page chat order button below checkout.
4. Delivery zones and settings in WooCommerce admin.

== Changelog ==

= 1.0.0 =

* Initial release.
* Product and cart chat order buttons.
* Delivery zones and delivery fees.
* Customer details modal.
* Delivery note support.
* Cart block support.
* Variable product support.
* Copy order text fallback.
* Optional mobile floating button.
* Optional non-personal order intent logs.
