While URL coupons don’t technically need settings to operate properly, it does add two options to the general settings that can streamline store management.
To view these options, go to WooCommerce > Settings > General tab and scroll down to the General options section:
When the coupon field is hidden, the “Apply Coupon” fields are hidden from customers on the respective pages, which can allow you to use only URL coupons for your store if you desire. In the screenshot, notice that the “Apply Coupon” field is missing to the left of “Update Cart” when using a URL coupon with these options enabled:
To create a new coupon, or edit an existing coupon code, navigate to Marketing > Coupons, and either add a new coupon or select one to edit.
Then go to the Discount links tab to set up the discount link for the coupon. Note that these settings do not need to be enabled unless you’d like to apply the coupon via URL.
/coupon/20off
, you might want to redirect customers to the shop or cart page. The default is your store’s cart page.If a coupon has a URL assigned, you’ll also see this change when viewing all coupons, as a “URL Slug” column is added. This lets you easily see the URL for a coupon on your site.
When creating the discount links, please take note of the following behavior:
site.com/CoUpOn
is the same as site.com/coupon
?
before the URL. (e.g., “?freeshipping”).Adding a trailing slash to a URL makes a difference in how the URL coupon behaves. For example, a unique URL of mystore.com/coupon/thanks
will behave differently than a coupon with the URL mystore.com/coupon/thanks/
.
Leave your coupons without a trailing slash if you’d like to use this as a starting point for your URL coupon. This is extremely helpful if you’d like to personalise URL coupons for customers.
For example, you can create a coupon code called “thanks” and set the Unique URL to coupon/thanks
. When a customer visits mystore.com/coupon/thanks
, the coupon code is applied.
You can also personalise this URL, as any URL that starts this way will also have the coupon applied. You can give out URLs like mystore.com/coupon/thanks-john
or mystore.com/coupon/thanksjane
, and these will act the same way as mystore.com/coupon/thanks
and all apply the same coupon code.
If you don’t want to allow a generic URL like this, then you can add a trailing slash to the end of your unique URL. Instead of creating a coupon with Unique URL coupon/thanks
, you’d add a trailing slash: coupon/thanks/
.
Now this coupon will only be applied if the customer visits mystore.com/coupon/thanks/
.
The URL mystore.com/coupon/thanks
will not work, nor will any URLs that begin this way, such as mystore.com/coupon/thanksjane/
.
Use the trailing slash method if you want to allow one and only one URL to apply the coupon.
As of version 2.4.0+, URL Coupons has support for the Customer / Coupon / Order CSV Import Suite plugin. This allows you to import new coupons with URL settings, or update existing coupons via a merge import.
When you have URL Coupons 2.4.0+ and Customer / Coupon / Order CSV Import 3.1.0+ active at the same time, you’ll automatically have URL Coupons options available for your import column mapping.
There are 5 new fields for each coupon you can import:
COLUMN HEADER | VALUE |
---|---|
url_coupons_unique_url | the slug for the coupon URL, ie coupon/thanks/ |
url_coupons_redirect_page | the ID of the content to which the coupon should redirect. This can be a product, page, or taxonomy ID. For example, if I want to redirect to the cart page, I’ll use the WordPress ID for that page. If I want to redirect to the “Music” product category archive, I can also use the term ID for that category. If this is anything but a page, you must set the “redirect type” column as well. |
url_coupons_redirect_page_type | the post or taxonomy type for the coupon redirect. This defaults to page , but you can use product , product_cat , product_tag or other content types. |
url_coupons_product_ids | A comma-separated list of product IDs (not SKUs) that should be added to the cart when this coupon is used. |
url_coupons_defer_apply | “yes” or “no” – yes if the coupon should defer applying until the cart meets requirements |
Please note that discount links that are applied when a user visits an existing page will be imported as a unique URL. For instance, if you created a discount link that gets applied when the user visits sample-page, then exported the coupon and wish to re-import it, the discount will have the following settings:
mystore.com/sample-page
.If you’d prefer to not redirect the visitor after they’ve visited the landing page you can update the coupon by selecting the “Apply coupon when user visits an existing page” and manually choosing the page from the Choose Page dropdown.