=== SPP URL Coupon Applicator ===
Contributors: simpliplugin
Tags: woocommerce, coupon, discount, url coupon, auto apply coupon
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create links that automatically apply a WooCommerce coupon the moment a customer visits your store. Includes a built-in link generator.

== Description ==

**SPP URL Coupon Applicator** lets store managers turn any coupon into a shareable link. When a customer clicks the link and lands on your store, the coupon is applied to their cart automatically — no code to type, no friction.

Perfect for email campaigns, social posts, influencer promos, ads and affiliate links.

= Key features =

* **Auto-apply on visit** — the coupon is applied as soon as the customer arrives via your link.
* **Point-and-click link generator** — pick a coupon, choose a destination (home, shop, cart, checkout or a custom URL) and copy a ready-to-share link.
* **Configurable URL parameter** — use the default `coupon` key or set your own.
* **Smart persistence** — optionally remember the coupon and apply it once the cart has items, so coupons with a minimum spend still work.
* **Flexible redirects** — stay on the page, or send visitors to the cart, checkout, shop or any custom URL after the coupon is applied.
* **Custom messaging** — control the success and error notices shown to customers, with a `{coupon}` placeholder.
* **HPOS compatible** — works with WooCommerce High-Performance Order Storage.

= Example =

`https://yourstore.com/?coupon=SUMMER20`

Send that link to your audience and the `SUMMER20` coupon is applied automatically.

== Installation ==

1. Upload the `spp-url-coupon-applicator` folder to `/wp-content/plugins/`, or install it through the Plugins screen in WordPress.
2. Activate the plugin through the **Plugins** menu.
3. Make sure WooCommerce is installed and active.
4. Go to **WooCommerce → URL Coupons** to configure settings and generate links.

== Frequently Asked Questions ==

= Does this require WooCommerce? =

Yes. WooCommerce must be installed and active. The plugin uses WooCommerce coupons and the WooCommerce cart.

= Can I change the URL parameter? =

Yes. Under **WooCommerce → URL Coupons → Settings** you can set any parameter name (for example `promo` or `deal`).

= What happens if the coupon has a minimum spend and the cart is empty? =

Enable "Persist coupon" in Settings. The coupon is remembered and applied automatically once the customer adds a qualifying item to the cart.

= Will invalid or expired coupons show an error? =

Yes. You can customize the error message shown to customers, or turn customer notices off entirely.

== Screenshots ==

1. The built-in link generator.
2. Plugin settings.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
