=== Smart Order Notifier ===
Contributors: mrsoukbh  
Donate link: https://linkze.me/donate-me  
Tags: whatsapp, woocommerce, order notifications, meta api, admin alerts  
Requires at least: 5.4  
Tested up to: 6.5  
Requires PHP: 7.2  
Stable tag: 1.3.0  
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  

Send WhatsApp order alerts to admins and customers using the Meta Cloud API. Supports custom templates, status tracking, and order URLs.

== Description ==

Smart Order Notifier connects your WooCommerce store to WhatsApp using the Meta Cloud API, allowing you to send real-time alerts to:

- Store Admins (e.g. new orders, status changes)  
- Customers (e.g. order placed, shipped, completed)

### ✨ Features:
- Admin WhatsApp notifications  
- Optional customer notifications  
- Support for WhatsApp message templates (Meta Cloud API)  
- Custom order URL buttons  
- Notify only on paid orders (optional)  
- WooCommerce order ID and status placeholders  
- Fully configurable via admin settings  

== Installation ==

1. Upload the plugin to your `/wp-content/plugins/` directory or install from the WordPress plugin repository.  
2. Activate the plugin through the ‘Plugins’ screen.  
3. Go to **Settings > Smart Order Notifier**.  
4. Enter your Meta Cloud API Access Token, Phone Number ID, and WhatsApp template names.  
5. Configure your admin and customer phone numbers and message templates.  

== Frequently Asked Questions ==

= What are the requirements? =  
You must have access to Meta Cloud API and approved WhatsApp templates.

= Can I disable customer notifications? =  
Yes. You can toggle customer alerts in the plugin settings.

= Can I use a custom URL button in WhatsApp messages? =  
Yes. You can define a button URL with `{order_id}` placeholder (e.g. `https://yourstore.com/order/{order_id}`).

= Do I need to use paid orders only? =  
That’s optional and configurable in the settings.

== Screenshots ==

1. Admin settings screen  
2. WhatsApp notification example  
3. Template setup in Meta Cloud  

== Changelog ==

= 1.3.0 =
* First public release.  
* Admin + customer WhatsApp alert system.  
* Support for button URLs and template variables.  

== Upgrade Notice ==

= 1.3.0 =
Initial release – make sure you configure your API credentials and templates after updating.

== License ==

This plugin is licensed under the GPL v2 or later. See `LICENSE.txt` for details.
