=== DirectCart Enquiries for WooCommerce ===
Contributors: mohammed91ayman
Tags: woocommerce, whatsapp, product enquiry, orders, ecommerce
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a lightweight WhatsApp enquiry button to WooCommerce product pages with useful product context.

== Description ==

DirectCart Enquiries for WooCommerce adds a configurable WhatsApp enquiry button beneath the add-to-cart form on WooCommerce product pages.

The generated message can include the product name, displayed price, product URL and SKU. The plugin stores no visitor messages and adds no analytics.

Features:

* Configurable WhatsApp number and button label.
* Message template placeholders for product name, price, URL and SKU.
* Custom button color.
* Optional new-tab behavior.
* Keyboard focus and reduced-motion support.
* No visitor data storage or hidden tracking.

== External services ==

This plugin generates a wa.me link to WhatsApp. No request to WhatsApp is made by this plugin until a visitor follows that link. Following the link shares the configured business number and pre-filled enquiry text, which may contain the product name, price, product URL and SKU, with WhatsApp. The visitor chooses whether to send the message. No analytics, visitor message archive or automatic order submission is included.

WhatsApp terms: https://www.whatsapp.com/legal/terms-of-service
WhatsApp privacy: https://www.whatsapp.com/legal/privacy-policy

== Installation ==

1. Upload the plugin ZIP from Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Open WooCommerce > DirectCart Enquiries.
4. Add the WhatsApp number with country code, without spaces or the plus sign.
5. Review the message template and save.

== Frequently Asked Questions ==

= Does it send orders automatically? =

No. It opens WhatsApp with a pre-filled product enquiry. The visitor reviews and sends the message.

= Does it store customer messages? =

No. The plugin creates the WhatsApp link on the product page and does not store message content.

= Which placeholders are supported? =

Use {product_name}, {price}, {product_url} and {sku} in the message template.

== Upgrade Notice ==

= 1.0.2 =
Unique DirectCart identifiers replace the former short prefix. Re-enter and save your business number and preferences after upgrading from the pre-review 1.0.0 build. The old generic settings are not migrated or deleted to avoid affecting other plugins that used the same option name.

== Changelog ==

= 1.0.2 =
* Retain the distinct dcefw identifiers introduced in 1.0.1 across classes, constants, settings and assets.
* Correct the WordPress.org contributor username.
* Align settings permissions with the WooCommerce manager screen and handle malformed setting values safely.
* Document the external WhatsApp link and the pre-review settings upgrade.


= 1.0.2 =

* First stable release.
