=== Magic Deal Links for WooCommerce ===
Contributors: ciblemaster
Plugin URI: https://wordpress.org/plugins/magic-deal-links-for-woocommerce
Tags: woocommerce, coupons, marketing, checkout, deals
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 2.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create promo links that add a WooCommerce product to cart, apply a coupon, and send customers to checkout.

== Description ==

Magic Deal Links for WooCommerce lets you create powerful promotion URLs directly from your WordPress admin.

When a customer clicks a magic deal link:

* A specific product is added to their WooCommerce cart.
* A specific coupon code is applied.
* The customer is redirected straight to the checkout page.
* You can optionally update the coupon's expiry date when creating the link.

Perfect for campaigns, influencers, email marketing, and limited-time offers.

== Features ==

* Select any published WooCommerce product or supported variation.
* Select any published WooCommerce coupon.
* See the current expiration date for each coupon while selecting.
* Automatically pre-fill and optionally change the coupon expiry date before generating or editing the link.
* Generate unique deal links that you can share anywhere.
* Keep link expiry and WooCommerce coupon expiry synced when links are created or edited.
* Edit coupon details such as discount type, amount, usage limit, cart totals, product restriction, individual use, and free shipping from the deal-link editor.
* Add click, purchase, quantity, days, and specific-date expiry rules.
* Add emergency countdown durations with hours and minutes.
* Bulk generate product deal links with fresh coupons.
* Bulk edit selected links/coupons for expiry, discount, usage limit, status, tags, UTM fields, and subscription rules.
* Add link/coupon tags and saved filters for campaigns, influencers, channels, and performance groups.
* Build UTM presets for campaign and influencer tracking.
* Add subscription-aware rules such as offer days, renewal limit, and plan labels.
* Copy generated links with one click from the admin screen.
* Track clicks, purchases, revenue, and campaign performance.
* Front-end handler adds the product, applies the coupon, and redirects to checkout.

== Installation ==

1. Zip the `magic-deal-links-for-woocommerce` folder.
2. Upload the plugin ZIP via **Plugins → Add New → Upload Plugin**.
3. Activate **Magic Deal Links for WooCommerce** through the 'Plugins' screen in WordPress.
4. Make sure WooCommerce is installed and active.
5. Go to **Magic Deals** in the WordPress admin menu.
6. Select a product and a coupon, optionally adjust the expiry date, then click **Generate Magic Deal Link**.

== Frequently Asked Questions ==

= Does this require WooCommerce? =
Yes. WooCommerce must be installed and active for this plugin to work.

= Can I change the expiry date of the coupon from the plugin page? =
Yes. When you select a coupon, its current expiry date will auto-fill into the date field. You can change this value, and the coupon will be updated when you generate or edit the deal link.

= Can I send the links in emails or ads? =
Absolutely. You can use the generated URLs in email campaigns, on social media, in ads, or anywhere you can share a link.

== Changelog ==

= 2.1.1 =
* Added remote licensing policy support so the license server can temporarily disable license enforcement.
* Added a configurable license invite banner controlled from the licensing plugin.
* Connected customer plugins to the licensing plugin's Marketing & Promotions message.

= 2.1 =
* Fixed edit-link saving so link expiry and WooCommerce coupon expiry stay synced.
* Restored coupon detail editing from the Edit Deal Link modal.
* Added hours and minutes support for emergency countdowns.
* Added bulk edit tools for selected links and coupons.
* Added subscription-aware deal rules.
* Added link/coupon tags, saved filters, and UTM presets.
* Added release hardening for admin actions, imports, and UTM tracking.

= 1.2.0 =
* Added copy buttons for generated and existing deal links.
* Added per-link analytics showing total uses and the last time a link was clicked.

= 1.1.0 =
* Added coupon expiry date display and editing when generating a magic deal link.

= 1.0.0 =
* Initial release with product + coupon selection and checkout redirect.
