=== Whinta Integration for WooCommerce ===
Contributors: whinta
Tags: Whatsapp, WooCommerce, WhatsApp Order Notification, WooCommerce Notification
Requires at least: 4.7
Tested up to: 6.7.1
Stable tag: 1.0.0
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Whinta WhatsApp Integration for WooCommerce auto-sends order updates to customers via WhatsApp, simplifying communication with the Whinta API.

== Description ==

Whinta WhatsApp Integration for WooCommerce is a plugin that enables WooCommerce store owners to automatically send WhatsApp messages to customers for key order events, leveraging the Whinta API.

=== Key Features ===

- **Automated WhatsApp Messages:** Send messages when an order is placed and when the order status updates (e.g., processing, completed, cancelled).
- **Customizable Message Templates:** Personalize your WhatsApp messages with dynamic placeholders such as customer name, order ID, and total price.
- **Supports Multiple Order Statuses:** Create unique messages for different order states like pending, failed, processing, completed, and cancelled.
- **Real-time Notifications:** Instantly keep your customers informed, enhancing their shopping experience.
- **Debug Mode:** View detailed logs of messages sent to customers, including API responses, for easy troubleshooting.

This plugin is an ideal solution for WooCommerce store owners seeking to improve customer engagement and order communication with WhatsApp’s convenience and immediacy.

> **Note:** All templates must be in English (US), and it's required to include all four variables (`customer_name`, `order_id`, `order_status`, and `total_price`) in the template for the plugin to function properly.

=== Installation ===

To install the Whinta WhatsApp Integration for WooCommerce:

1. Upload the `whinta-for-woocommerce` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the plugin settings page to configure your Whinta API key and customize message templates.


=== SUPPORT ===
Any Issues? Feel free to contact us at- <a href="https://whinta.com/contact-us/" target="_blank">https://whinta.com/contact-us/</a>

Documentation:-

https://www.youtube.com/watch?v=yj9bB5o7E8E

== Usage ==

After installing and activating the plugin:

1. **Configure API Settings:** Go to the plugin settings page in WordPress, and enter your Whinta API key, available from your Whinta account.
2. **Set Up Message Templates:** Customize the message templates using the dynamic placeholders provided (`$customer_name`, `$order_id`, `$order_status`, `$total_price`) to personalize your notifications.
3. **Test the Integration:** Place a test order to verify the plugin’s functionality. Use the debug mode for troubleshooting if needed.

For more detailed information on configuration, refer to the [FAQ](#frequently-asked-questions) section below.

== Frequently Asked Questions ==

= What do I need to use this plugin? =
You need a Whinta account and an API key. You can obtain the API key by signing up for Whinta's WhatsApp API services at [whinta.com](https://whinta.com).

= What language should the templates be in? =
Templates must be written in English (US) to function correctly.

= Can I use emojis in my WhatsApp message templates? =
Yes, the plugin supports the use of emojis in templates for a friendlier tone.

= Why are my messages not sending? =
Ensure that all four variables (`$customer_name`, `$order_id`, `$order_status`, and `$total_price`) are included in your templates, as these are required for message delivery.

= How can I test if the plugin is working? =
After configuring the API and templates, place a test order to verify that WhatsApp messages are sent appropriately. Use debug information on the settings page if needed.

= Is technical support available? =
Yes, for issues or questions, contact our support team via email or visit the support page.

== External Services ==

 This plugin integrates with Whinta's API for sending WhatsApp notifications. This integration is required to provide order and status notifications via WhatsApp.
== Details: ==
- **Service Name:** Whinta API
- **Service Usage:** Sends WhatsApp messages for order notifications.
- **Data Sent:**
  - Order details (status, customer name, order ID, Customer Mobile No).
  - Template data for notifications.
- **When Data is Sent:** When orders are created or updated in WooCommerce.
- **Service Links:**
  - [Terms of Service](https://whinta.com/terms-of-service/)
  - [Privacy Policy](https://whinta.com/privacy-policy/)


== Changelog ==

= 1.0.0 =
* Initial release: Added core functionality for automatic WhatsApp messaging with customizable templates and debug mode for WooCommerce orders.