URL Coupons for WooCommerce plugin allows your customers to apply coupons via URL, for example, via:
http://example.com/?alg_apply_coupon=couponcode
You don’t need to create any special coupons – the plugin will allow you to apply standard WooCommerce discount coupons.
Main Features
- Apply standard WooCommerce discount coupons via URL.
- Automatically add products to the cart when a coupon is applied.
- Delay applying the coupon until some product is added to the cart.
- Hide standard coupon input fields on the cart and/or checkout pages.
- Redirect customers to any page after a coupon is applied.
- Delay the notice if the cart is empty when applying a URL coupon.
- Set custom notice to be displayed when coupon code is successfully applied.
- Set custom notice per individual coupon.
- And more…
Generally, the plugin doesn't require any shortcodes, however, there are a few cases where you may need them. The plugin has two shortcodes:
[alg_wc_url_coupons_print_notices]
If you are using URL to a page where no WooCommerce notices are displayed, try adding our [alg_wc_url_coupons_print_notices]
shortcode to the content. Please note that this shortcode will print all available WooCommerce notices (i.e. not only from our plugin, or notices related to the coupons).
[alg_wc_url_coupons_translate]
If you have a multi-language site (WPML or Polylang), you can translate custom notices, etc., with our [alg_wc_url_coupons_translate]
 shortcode:
[alg_wc_url_coupons_translate lang="EN,DE" lang_text="Text for EN & DE" not_lang_text="Text for other languages"]
or in the more complex form:
[alg_wc_url_coupons_translate lang="EN,DE"]Text for EN & DE[/alg_wc_url_coupons_translate][alg_wc_url_coupons_translate not_lang="EN,DE"]Text for other languages[/alg_wc_url_coupons_translate]
Does the plugin allow applying coupons that require a minimum spend amount (e.g. $20 off orders of $100+)?
Yes. As our plugin uses standard WooCommerce coupons, you can use all the features that standard WooCommerce coupons have.
Coupons are not being applied to guest users. What to do?
Please make sure that "Force session start" checkbox is enabled (in "WooCommerce > Settings > URL Coupons > General").
General Options
Settings are located in “WooCommerce > Settings > URL Coupons > General”.

- URL coupons key
- URL key. If you change this, make sure it’s unique and is not used anywhere on your site (e.g. by another plugin). Your customers can apply shop’s standard coupons by visiting URL. E.g.:
http://example.com/?alg_apply_coupon=couponcode
- Default:
alg_apply_coupon
- Force session start
- Enable this if URL coupons are not being applied to the guests (i.e. not logged users).
- Default:
no
- Add products to cart
- Automatically adds coupon’s products to the cart for “Fixed product discount” type coupons.
- Default:
no
- Add products to cart: Empty cart
- Clear the cart before adding the coupon’s products.
- Default:
no
Delay Coupon Options
Settings are located in “WooCommerce > Settings > URL Coupons > General”.

- Delay coupon
- Delay applying the coupon until some product is added to the cart.
- Default:
no
- Delay on non-empty cart
- What to do if there are already products in the cart when applying coupon.
- Default:
Yes
- Check product
- For “Fixed product discount” type coupons – additionally check if correct product is added to the cart (i.e. if coupon is valid for product).
- Default:
no
- Success notice
- Ignored if empty. Available placeholder(s):
%coupon_code%
.- Default:
Coupon code applied successfully.
- Error notice: Coupon already applied
- Ignored if empty. Available placeholder(s):
%coupon_code%
.- Default:
Coupon code already applied!
- Error notice: Coupon does not exist
- Ignored if empty. Available placeholder(s):
%coupon_code%
.- Default:
Coupon "%coupon_code%" does not exist!
Hide Coupon Options
Settings are located in “WooCommerce > Settings > URL Coupons > General”.

Hide coupon on cart pageEnable this if you want to hide standard coupon input field on the cart page.- Default:
no
Hide coupon on checkout pageEnable this if you want to hide standard coupon input field on the checkout page.- Default:
no
Redirect Options
Settings are located in “WooCommerce > Settings > URL Coupons > General”.

- Redirect URL
- Redirect when coupon code is successfully applied. Possible values: No redirect; Redirect to cart; Redirect to checkout; Redirect to custom local URL.
- Default:
No redirect
- Redirect URL: Custom local URL
- Used only if “Redirect to custom local URL” value is selected in “Redirect URL” option.
- Default: None
- Redirect URL per coupon
- Will add “URL Coupons: Redirect URL” field to each coupon admin edit page.
- Default:
no

Notice Options
Settings are located in “WooCommerce > Settings > URL Coupons > Notices”.

- Delay notice
- Delay the “Coupon code applied successfully” notice if the cart is empty when applying a URL coupon. Notice will be delayed until there is at least one product in the cart.
- Default:
no
- Custom notice
- Custom notice to be displayed when coupon code is successfully applied. Ignored if empty.
- Default: None
- Notice per coupon
- Will add “URL Coupons: Notice” field to each coupon admin edit page.
- Default:
no

- Notice per coupon: Override global notice
- This will remove the global “Custom notice” notice, in case if there are any “per coupon” notices to display.
- Default:
no
- Override default notice
- This will remove the default “Coupon code applied successfully” notice, in case if there are any custom notices to display.
- Default:
no
- Notice method
- Possible values: “Add” or “Append”. This makes a difference only if you have multiple notices displayed: “Add” option will add it as a new notice (i.e. will display it as a multiple notices), while “Append” option will merge it with the existing notice, for example, with the default “Coupon was successfully applied” notice (i.e. will display it as a single notice). Possible values: Add; Append.
- Default:
Add
- Notice type
- Ignored, unless “Notice method” option is set to “Add”. Possible values: Success; Error; Notice.
- Default:
Success
- Notice glue
- Ignored, unless “Notice method” option is set to “Append”.
- Default:
<br>
Advanced Options
Settings are located in “WooCommerce > Settings > URL Coupons > Advanced”.

- Save on empty cart
- Save coupons when cart is emptied. Coupons will be reapplied when some product is added to the cart.
- Default:
no
- Hook priority
- Priority for the main plugin hook. Leave empty for the default priority.
- Default: None
- Remove "add to cart" key
- Will remove
add-to-cart
key on “Redirect URL > No redirect” option.- Default:
yes
- Force coupon redirect
- Force coupon redirect after
add-to-cart
action.- Default:
no
- Extra cookie
- Enable this if you want to set cookie when URL coupon has been applied. Cookie name will be
alg_wc_url_coupons
.- Default:
no
- Extra cookie: Expiration
- The time the cookie expires. In seconds.
- Default:
1209600
- WP Rocket: Disable empty cart caching
- Check this if you have “WP Rocket” plugin installed, and having issues with cart being empty after you apply URL coupon and add a product.
- Default:
no
- Payment request buttons: Apply coupons on single product pages
- Possible values: WooCommerce Stripe Gateway; WooCommerce Payments.
- Default:
no
Free vs Pro
This plugin is a premium version of free "URL Coupons for WooCommerce" plugin.
| Free Version | Pro Version |
URL coupons key | | |
Force session start | | |
Add products to cart | | |
Delay coupon | | |
Hide coupon on cart page | | |
Hide coupon on checkout page | | |
Redirect URL | | |
Redirect URL per coupon | | |
Delay notice | | |
Custom notice | | |
Notice per coupon | | |
Override default notice | | |
Notice method | | |
Advanced Options | | |
Valentin –
Good customer service! I recommend!
WPFactory Plugins –
Thanks 😉
Carm (verified owner) –
I needed a light-weight plugin to generate URL Coupons and the URL Coupons for WooCommerce did not disappoint. Thanks for this wonderful plugin.
Tom Anbinder –
Thank you, Carm!
Christian –
Unfortunately the feature to delay the coupon until products are added does not work at all and also the notification text does not appear anywhere…
Update: That worked. Thank you!
Tom Anbinder –
Hi Christian,
Sorry to hear that there are problems with the plugin. Could you please try enabling our “Force session start” checkbox option (in “WooCommerce > Settings > URL Coupons > General”). Does it make any difference?
Eugenio –
Great Plugin – Very good assistance
The plugin works fine and it does what it says.
The assistance’s been very helpful in helping us with an issue.
Thx
Tom Anbinder –
Thank you!