URL Coupon Overview #
EasyCoupon lets you apply a WooCommerce coupon through a link. This is useful when you want customers to receive a coupon from an email, campaign, support message, or another page without manually typing the coupon code.
How URL Coupons work #
After a coupon is enabled as an EasyCoupon URL Coupon, EasyCoupon creates a URL containing the apply_coupon parameter. When a customer visits the URL, EasyCoupon checks the coupon and attempts to apply it to the cart.
The customer must have at least one product in the cart. If the cart is empty, EasyCoupon sends the customer to the shop page and asks them to add a product first.
URL Coupon settings #
Open a WooCommerce coupon for editing and look for the easyCoupon URL Coupon tab. The available settings include:
- Active Coupon URL — enables the URL coupon for the coupon.
- Force Apply — removes other applied coupons before applying this URL coupon.
- Coupon URL — the generated URL, with a Copy URL action.
EasyCoupon uses the normal WooCommerce coupon validation process before adding the coupon to the cart.
What happens after the link is opened? #
If the URL coupon is valid, EasyCoupon applies it when possible and redirects the customer to the configured redirect URL. If no redirect URL is configured, the customer is redirected to the WooCommerce cart.
If Force Apply is enabled, other coupons currently applied to the cart are removed before EasyCoupon applies the URL coupon.