How to Auto-Apply WooCommerce Coupons Using a Custom URL

With Permalink Manager Pro, you can easily generate shareable WooCommerce coupon links. When a visitor opens the URL, the associated coupon is added to the cart automatically.

This allows you to share a coupon as a regular URL instead of requiring the customer to enter the coupon code manually.

Coupon URLs configured with Permalink Manager can be used even when customers visits your store for the first time and their cart is empty. The discount will apply automatically when they add eligible items to their cart.

Coupon URLs for WooCommerce

How to Generate a Coupon URL

Permalink Manager Pro adds a dedicated section to the coupon edit screen that lets you define a custom permalink for each coupon. This means you can create coupon URLs without installing extra coupon plugin or writing custom PHP code.

To define a custom permalink for a coupon:

  1. Open the coupon you want to share in WooCommerce → Coupons admin dashboard.
  2. Find the "Coupon Link" section.
  3. Enter a unique URI, such as freedelivery.
  4. Save the coupon.

The generated URL is displayed below the field. You can copy it and share it with customers or use it in your promotional materials.

Coupon URLs are not case-sensitive and both of the following example URLs refer to the same coupon:

https://example.com/FREEDELIVERY
https://example.com/freedelivery

Coupon Link section inside "WooCommerce -> Coupons"

How Coupon URLs Work?

With coupon URLs, your customers do not need to enter a coupon code such as BLACKFRIDAY26 manually. They can simply visit a dedicated URL, for example example.com/black-friday, to use the discount.

When a customer visits a coupon URL, Permalink Manager saves the detected coupon name in the cart session, and WooCommerce handles the coupon validation. All standard WooCommerce coupon rules still apply, including:

  • Expiration dates
  • Minimum/maximum order amounts
  • Product restrictions
  • Usage limits
  • Any other coupon conditions configured in WooCommerce

If the coupon is valid, the discount is applied automatically after the link is opened, and the customer is redirected either to the cart page or to the shop page when no items are in the cart.

 

Discount automatically applied after using the coupon URL

Using Coupon URLs With an Empty Cart

A coupon URL can be opened even when the visitor's cart is empty. The coupon is stored in the WooCommerce session when the URL is opened.

The visitor can then continue browsing the store and add eligible products to the cart. When the coupon conditions are satisfied, WooCommerce applies the discount according to the coupon's configuration.

Last updated by Maciej Bis on: October 8, 2026.

Go up