=== Notifex Order Alerts & Upsells for WooCommerce ===
Contributors: jahidcse
Tags: woocommerce, order notifications, slack, telegram, google sheets, upsells, cart upsells, checkout upsells, zapier, pabbly
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
WC requires at least: 6.0
Stable tag: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Real-time WooCommerce order notifications via Slack, Telegram, Google Sheets, Zapier & Pabbly Connect — plus a smart upsell system for cart & checkout.

== Description ==

**Notifex Order Alerts & Upsells for WooCommerce** is an all-in-one plugin that keeps your team informed about every WooCommerce order event and helps you increase average order value — all from a single, beautifully designed settings page.

= 📡 Notification Channels (Free) =

Route real-time order alerts to the tools your team already uses:

* **Slack** — Send instant order alerts to any Slack channel via Incoming Webhooks.
* **Telegram** — Push order notifications straight to a Telegram chat or channel via Bot API.
* **Google Sheets** — Append order data rows directly to a Google Sheet using OAuth 2.0 credentials.
* **Zapier** — Trigger any Zapier workflow when WooCommerce order events fire.
* **Pabbly Connect** — Send order data to Pabbly Connect to automate cross-app workflows.

= 🔔 Trigger Events =

Choose exactly which order events fire your notifications:

* Order Created
* Order Completed
* Order Cancelled
* Payment Failed

= 🛒 Smart Upsells =

Boost revenue on every order with contextual upsell suggestions:

* Display upsell product grids on the **Cart** page and **Checkout** page.
* Define rules per product: when a specific product is in the cart, show a selected set of upsell products.
* One-click **Add to Cart** via AJAX — no page reload required.
* Clean, theme-compatible front-end output.

= ✉️ Email Templates (Upcoming) =

Customise the content of transactional emails sent on key order events:

* **New Order** email — subject and body.
* **Order Completed** email — subject and body.
* Supports placeholders: `{customer_name}`, `{order_id}`, `{order_total}`, `{order_date}`.

= 🚀 Pro Integrations =

Unlock even more channels with the [Notifex Pro]

* **Webhook** — POST full order payloads to any custom HTTP endpoint.
* **Twilio SMS & WhatsApp** — Send SMS or WhatsApp messages via Twilio on order events.
* **FluentCRM** — Add or tag customers in FluentCRM lists automatically.
* **Mailchimp** — Subscribe customers to Mailchimp audiences on new orders.
* **ClickUp** — Create ClickUp tasks automatically for new orders.
* **Zoho CRM** — Sync WooCommerce order data with Zoho CRM Leads, Contacts, or Deals.

== Installation ==

1. Upload the `notifex-order-alerts-upsells-for-woocommerce` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Make sure **WooCommerce** is installed and active.
4. Navigate to **Notifex Alerts → Settings** in the WordPress admin sidebar to configure notification channels and triggers.
5. Navigate to **Notifex Alerts → Upsells** to set up cart and checkout upsell rules.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active. The plugin will display an admin notice if WooCommerce is missing.

= Which PHP version is required? =

PHP 7.4 or higher is required.

= Will the plugin send a notification for every single order event automatically? =

Only for the trigger events you have selected under **Trigger Events** on the Settings page, and only for the channels you have enabled and configured.

= Can I use multiple notification channels at the same time? =

Yes. You can enable and configure as many channels as you like. Each will fire independently on the selected trigger events.

= Does the upsell system work with variable products? =

Yes. The upsell rules support simple and variable products with AJAX add-to-cart.

== Screenshots ==

1. Settings page — integration cards overview.
2. Slack integration modal — configure your Incoming Webhook URL.
3. Zoho CRM integration modal — OAuth setup with Client ID, Client Secret and Module.
4. Upsell rules management — define per-product upsell logic.
5. Frontend cart upsell display with buy now button.

== Changelog ==

= 1.0.0 =
* Initial release.
* Slack, Telegram, Google Sheets, Zapier, and Pabbly Connect notification channels.
* Order Created, Completed, Cancelled, and Payment Failed trigger events.
* Smart upsell system for cart and checkout with AJAX add-to-cart.
* Email template editor with placeholder support (upcoming).
* Clean uninstall routine.