Description
URL Coupons for WooCommerce plugin allows your customers to apply coupons via URL, for example, via http://example.com/?alg_apply_coupon=couponcode
.
Options
Settings are located in “WooCommerce > Settings > URL Coupons”.
General Options
- 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
- Default:
- Force session start
- Enable this if URL coupons are not being applied to the guests (i.e. not logged users).
- Default:
no
- Default:
- Add products to cart
- Automatically adds coupon’s products to the cart for “Fixed product discount” type coupons.
- Default:
no
- Default:
- Add products to cart: Empty cart
- Clear the cart before adding the coupon’s products.
- Default:
no
- Default:
Hide Coupon Options
- Default:
no
- Default:
no
Redirect Options
- 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
- Default:
- 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
- Default:
Notice Options
- 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
- Default:
- 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
- Default:
- 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
- Default:
- 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
- Default:
- 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
- Default:
- Notice type
- Ignored, unless “Notice method” option is set to “Add”. Possible values: Success; Error; Notice.
- Default:
Success
- Default:
- Notice glue
- Ignored, unless “Notice method” option is set to “Append”.
-
- Default:
<br>
- Default:
Advanced Options
- 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
- Default:
- Force coupon redirect
- Force coupon redirect after
add-to-cart
action.- Default:
no
- Default:
- 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
- Default:
- Extra cookie: Expiration
- The time the cookie expires. In seconds.
- Default:
1209600
- Default:
- 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
- Default:
Shortcodes
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).
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!