Automatically Apply Discount to the Cart With a Public Coupon URL

Automatically Apply Discount to the Cart With a Public Coupon URL

Automatically apply a discount coupon to your WooCommerce cart when clicking on a public URL! Sounds intriguing? Here’s everything you need to know.

The e-commerce world is growing day by day, new online stores are sprouting everywhere and the competition has become so intense that these stores are in constant need of updated marketing strategies. The frequent updates help to keep up with the changing eCommerce climate and to gain some tactical advantage over the competition.

Out of a number of promotional options, discount coupons are found to be the real people puller. The feeling of getting something extra for what they pay does seem to work really well among customers.

Coupons generate sales by attracting new users and retaining existing customers. Coupons persuade users to complete their purchases by giving them the push that they need. To optimize its benefits, coupons should be promoted everywhere. Even limiting the promotions to in-house can significantly reduce the forecasted benefits.

This is where the coupon URL comes in. The URL can be used both inside and outside the store. It can therefore play an instrumental role in promoting the coupons.

What are coupon URLs? Why should they be used?

A discount coupon in WooCommerce is a voucher that when applied to the cart will reduce the net cart subtotal. Store owners can create a variety of discount coupons that suits their online retail business.

The only issue with that is people will start to anticipate coupons – this is inherently not a bad thing. However, this teaches customers to go look for coupons before completing a purchase. That is, they leave their cart in the quest for coupons. This is a chance that you should never take – especially when you have no control over where they will go next.

Only a fraction of customers leaving the cart would return to complete the purchase. Others might get distracted or might not succeed in finding any coupons, so they would abandon their cart.

There is a much better way to increase sales with the help of coupons – creating links for individual coupons. These links make it easy to market and promote the coupon both in-house and on external sites. For example, you can add the coupon link to a promotional blog which will be shared with the customers or on social media.

When the customers click on the coupon link, the coupon will get automatically applied. These coupon links can be made either public or aimed at a certain group of audiences to make the best out of them.

Public coupon URLs are usually displayed in blogs/articles, etc., which people often visit. This article shows you how you can display coupon URL’s on such platforms. You first need to install the URL coupon plugin for WooCommerce in your WooCommerce store to enable this feature. Here is how to install this plugin.

Install the URL coupons plugin

After purchasing the URL Coupons Plugin for WooCommerce, the plugin will be available as a zip file in the API Downloads section of your My account page.

  1. Download the .zip file from API Downloads by logging into your Webtoffee My account page.
  2. Log in to your WordPress admin console.
  3. Navigate to Plugins > Add New > Upload to upload the downloaded plugin.
  4. Choose the plugin file to upload.
  5. Finally, install and activate the plugin.

Create a public coupon URL to display on your blog

When you set up and activate the plugin, a new menu appears in the Coupon data widget called the “URL options” when creating a new coupon or editing an existing one.

You will need to fill in those fields in order to create a coupon URL.

url options in WooCommerce

Let us go through the entire process of creating a public coupon URL.

Step 1: Create a new coupon

Go to Marketing > Coupons and click on Add coupon.

creating a new discount coupon in your woocommerce store

Provide a coupon name and description and fill in the necessary fields in the Coupon data widget.

Step 2: Configure the coupon

You can move on to fill in the Usage restriction and Usage limits details of the coupon as you prefer. For guidance on filling in these details, you can refer to the WooCommerce coupon setup article.

Step 3: Create a URL coupon

Go to the URL options tab.

url coupon options in coupon data tab

Unique URL: As the name suggests, this will be the public URL for your coupon. You can create a custom URL for individual coupons this way. When a customer clicks on this URL or scans the corresponding QR code, they will be redirected to your store’s cart page and the coupon will be automatically applied. This unique URL can be later copied to the blog for easier promotion.

Add products to cart: Any product added here will be automatically added to the customer’s cart when applying the coupon. Your customer will only need to either click on the coupon URL or scan the QR code to apply the coupon.

After applying, redirect to: You can choose between a URL and a page. This field determines where the customer should be redirected when clicking on the coupon link from a blog. The cart page is the default configuration, but you can change it to the checkout or any other page if you wish to.

Now click the nearby publish button to make the coupon live.

Step 4: Publish the URL to the public

Create a blog to display the coupon link. Once you create the blog copy-paste the coupon URL to a particular word or image of the blog and create a link to the coupon.

In this blog, if you click on the image, you will be redirected to the cart page. Also, the coupon will get automatically applied on clicking the image.

Here is a screenshot of the cart.

a blog with coupon URL

When you click on this image, the customers will be redirected to a specific page or URL of your website. In the following image, the product ‘blue bag’ was already in the cart. When the coupon URL was clicked, the user was redirected Cart page, the product ‘black shirt’ was automatically added to the cart and a 20% discount was automatically applied.

WooCommerce cart with URL coupon applied

Bringing your website/blog visitor to the cart in a single click will multiply your chances for a sale.


Of all the coupon strategies that have been in use this far, URL coupons are the best coupon idea ever. It is a very powerful way to earn more sales for your store. Thus, you do not have to think twice to employ this feature in your WooCommerce store.

Hope this article was of interest to you. Do let us know what you think in the comments below.