Apply a coupon from a link (PRO)
Updated September 15, 2026
With PRO, adding ?coupon=CODE to any page address on your store applies that coupon automatically. You can also tick Only Valid Via Link so the code is rejected when it is typed in, and only works for shoppers who arrive through the link.
The link for each coupon is shown in the Coupon Link section of its Better Coupon Restrictions tab.
Create a coupon link
Take any page on your site and add the parameter, for example:
https://example.com/?coupon=SPRING15
https://example.com/shop/summer-range/?coupon=SPRING15
Several codes can be added at once, separated by commas: ?coupon=SPRING15,FREESHIP.
What happens when a shopper clicks the link
- The code is saved to the shopper’s WooCommerce session, and a session is started for guests if needed.
- If the cart already has items, the coupon is applied straight away.
- If the cart is empty, the coupon is applied as soon as they add their first product.
- If the coupon is not valid yet, for example the cart is below a minimum spend, it is kept and tried again the next time a product is added to the cart.
All the coupon’s other restrictions still apply.
Only Valid Via Link
Tick Only Valid Via Link to stop the code working when it is typed into the coupon field. Shoppers who did not arrive through the link see “This coupon can only be applied through its link.”
Once a shopper has visited the link, the code counts as link-applied for the rest of their session, so they can remove it and apply it again.
Things to check
- Page caching can serve a cached page without WordPress running. Make sure your cache does not serve cached pages for URLs with a
couponparameter. - The parameter name can be changed with the
bcrw_link_coupon_paramfilter. See Hooks and filters reference.


