=== UpsellMax Cart Drawer ===
Contributors: jyotitech
Tags: cart drawer, upsell, discount rules, WooCommerce, SaaS, plugin UI
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A modular cart drawer plugin for WooCommerce that connects to the UpsellMax SaaS platform for smart upsell rules, progress bars, and discount logic. UI-only until user consents to connect.

== Description ==

UpsellMax is a lightweight cart drawer plugin that enhances WooCommerce with smart upsell logic, progress bars, and bundled product recommendations — powered by a secure SaaS backend.

🛡️ **Privacy-first architecture**: No data is transferred until the user explicitly consents to connect to the SaaS platform.

🎯 **Modular features** (after consent):
- Create upsell rules, progress bars, and discount thresholds
- Inject cart drawer via SaaSmain.js
- Fetch WooCommerce cart data and apply smart logic
- Display bundled products and dynamic offers
- Manage license (free or paid) and secure API keys

🧩 **Plugin UI**:
- Sidebar menu: Dashboard, Settings, Licensing (disabled until consent)
- Dashboard screen prompts user to connect to SaaS
- All logic and data processing happens on the SaaS backend

🔐 **Security**:
- HMAC-based signature verification for all API calls
- Public key derived from license + secret
- No hidden code or remote PHP execution

== Installation ==

1. Upload the plugin to your `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **UpsellMax > Dashboard** and click **Connect** to activate features.

== Frequently Asked Questions ==

= Does this plugin work without connecting to SaaS? =
Yes, but only the dashboard screen is available. All advanced features require user consent to connect.

= Is user data shared automatically? =
No. The plugin does not transmit any data until the user clicks "Connect" and consents to SaaS integration.

= Can I revoke consent later? =
Yes. You can disconnect from the SaaS backend via the Settings screen.

== Screenshots ==

1. Dashboard screen prompting user to connect
2. Activated sidebar with licensing and settings
3. Cart drawer injected via SaaSmain.js

== Changelog ==

= 1.0.0 =
* Initial release with dashboard UI and SaaS consent flow

== Upgrade Notice ==

= 1.0.0 =
First release. Connect to SaaS to unlock cart drawer features.

