=== Coupon URLs - Apply a Coupon from a Custom Link - for WooCommerce ===
Contributors: neblabs
Tags: woocommerce, coupons, woocommerce coupons, url coupons, woocommerce coupon
Requires at least: 4.7
Tested up to: 6.8
Stable tag: 1.3.3.1
Requires PHP: 7.2
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create coupons URLs from any URL on your site. Apply a coupon by visiting a custom link from your domain, like example.com/code/9785895

== Description ==

A 100% free plugin. Free forever. No "pro" version. Premium quality. Made for WooCommerce.

Compatible with WooCommerce 10.* (latest)

##Automatically apply coupons by URL
Coupon URLs is a WooCommerce extension that allows you to apply a WooCommerce coupon by clicking a custom link on your site. You have full control over the URL. You can create any URL you want from your own domain, there are no limits or restrictions:

* Examples:
    * https://example.com/?code=FALL50
    * https://example.com/code/FALL50
    * https://example.com/FALL50
    * https://example.com/offers/?code=FALL50
    * https://example.com/a/very/deep/path
    * https://example.com/your/custom/coupon/link?from=url

##Add a product automatically before applying the coupon
Coupon URLs allows you to add a product from your store automatically before applying the discount/coupon. You can even select the quantity!

For example, you can create a custom link like: https://example.com/code/FREEORANGE that when clicked will add 1 Orange and then the coupon FREEORANGE will be applied adding a 100% discount (just as an example).

##Redirect to the cart, the checkout page or any other page after applying the coupon
You can select *any* page on your site to redirect to after applying the coupon. Want to redirect to the cart? The checkout page? A specific product page? A custom page? We got you covered! You can also choose not to redirect to any page after the coupon link was clicked!

Redirect to:
* Cart (WooCommerce)
* Checkout (WooCommerce)
* Shop (WooCommerce)
* Homepage
* Any page on your site
* A custom path on your site (eg: example.com/a/custom-path)
* An external URL 

##Smart apply
If the customer's cart is empty (and you haven't added the Add Product action), Coupon URLs will automatically apply the coupon as soon as the customer adds a product to their cart. No manual action is needed.

##Beautiful UI
Coupon URLs has been designed as a visual builder so that you add only the actions that you want to perform after the link has been clicked, visually.

* 5 actions: 
    * Add coupon.
    * Add Product.
    * Redirect
    * Add an Extra Message After Applying to the Cart.
    * Add Custom Message When Coupon hasn't been added yet.

Coupon URLs is an original Neblabs concept. We love your opinion. If you have feedback or new ideas that you'd like to see, [let us know](https://wordpress.org/support/plugin/coupon-urls-for-woocommerce/). You can view the repo [here](https://github.com/Neblabs/coupon-urls).

This URL coupons plugin has been designed to work nicely with other standard WooCommerce coupon features, such as usage limits, product/category restrictions, user restrictions, etc. This means that the coupon will not be applied if it's expired, has reached its usage limit, or if the products in the cart don't match the coupon's restrictions. It is designed to work with third-party plugin restrictions too.

== Frequently Asked Questions ==

= How to use this plugin? =
Coupon URLs add a new section to the classic coupons admin screen. Go to [WordPress Admin] > Marketing > Coupons and create or edit a coupon. You will find a "Configure URL" button bellow the coupon code field.

= Are the URLs case-sensitive? =
Your custom coupon links will not be case-sensitive. This means your links will work no matter if you use uppercase or lowercase letters. For example, if your coupon URL is example.com/code/FALL50, both of these URLs will work: example.com/code/fall50 and example.com/CODE/FALL50

= What happens if I don't add a redirection? =
If you don't add a redirection, the coupon will be applied and the page for that URL will be loaded as normal. 

== Changelog ==

= 1.3.3.1 =
* Fixed cart dependency on certain sections.

= 1.3.3 =
* Fixed scrolling issue when the classic panel area is longer than the Coupon URLs dashboard.

= 1.3.2.1 =
* Fixed PHP 8 deprecations.

= 1.3.2 =
* Fixed bug that didn't ignore trashed coupons (they're now ignored)

= 1.3.1 =
* Added PHP filters to enable/disable specific features

= 1.3 =
* Added a save button
* Added a "Go to Coupons" link under the plugin name in the installed plugins screen.