Black Friday Sale!
- - Day
- - Hrs
- - Mins
- - Secs
Get 30% off with coupon code WTBFCM30... Limited offer!

How to Auto Apply Coupons Using Custom URLs in WooCommerce

How to Auto Apply Coupons Using Custom URLs in WooCommerce

Customers always appreciate a hassle-free shopping experience! It results in better conversions and improved customer retention. So how do you make shopping relaxed?

One good way to do this is to bypass the trouble of manually applying coupon codes! It could circumvent the trouble of customers having to leave your site looking for discount coupon codes.

So how would you offer discounts without applying coupon codes? Well, you can create unique coupon links or URLs for each coupon and offer them to the customers instead of raw coupons.

You can create these coupon URLs with a WooCommerce plugin like Smart Coupons for WooCommerce. However, if you need additional functionalities like coupon QR codes, custom redirect pages, attaching products with URLs, etc. the URL Coupons for WooCommerce plugin is here to help.

How do WooCommerce custom coupon URLs work?

URL coupons or coupon links, an alternative to our conventional coupon code approach, enable passing coupons through a link. Clicking on the anchor where the coupon URL is embedded will automatically apply the coupon to the customer’s shopping cart.

This WooCommerce auto-apply coupon functionality adds convenience to the checkout process as this requires no additional manual intervention for applying the coupon.

In addition to discount coupons, you can also attach products with coupon URLs with the URL coupons for WooCommerce plugin. So when a customer clicks on the coupon links, the products along with the discount codes will be applied to the cart. This makes shopping even easier!

Tune in to learn how to auto-apply coupons using custom URLs in your WooCommerce store.

You can configure a URL Coupon for internal or for any external site very easily in just a few easy steps. Here we are going to primarily focus on linking the URL with internal and external blog posts.

How to configure URL Coupons in WooCommerce?

The first step is installing the URL Coupons for WooCommerce plugin. Once you have installed and activated the plugin, you can move on to creating URL coupons.

Create a URL Coupon in the following manner:

  1. Navigate to WooCommerce > Coupons, and create a new coupon by clicking on Add Coupon.
  2. Provide an appropriate coupon code (or automatically generate one) and description.
  3. Configure the coupon according to your specific requirements. For example, if you wish to offer a 20 percent discount with the URL coupon. Then, create a percentage discount coupon with a coupon value of 20.
  4. From the URL options tab:
    1. Enter an appropriate text in the unique URL field. This string will be appended with your site URL to form a unique coupon URL (sale20).
    2. You can specify the product that you want to automatically add to your customer’s cart when they click or scan the URL/QR code in the Add products to cart field. (Men’s Cotton T-Shirt – Red)
    3. Define where your customers should be redirected to after applying the coupon in the Redirect after applying field. You can either provide a specific URL or a page. (Checkout)
Configure URL Coupons with the WordPress WooCommerce plugin
URL Coupon for WooCommerce-Custom Configurations

Now, let us create a blog where this URL coupon can be embedded. Here, we are going to link the URL coupon with an image in a blog post as shown below.

Add URL coupons to blog posts
Attaching URL coupons with blog post images

Publish the post and preview it. On clicking the image, the customers will be redirected to the checkout page. Also, the specified product will be automatically added to the cart and the coupon will be applied.

URL Coupon
URL Coupons – What customers experience

You can also generate QR Codes corresponding to each coupon just like the coupon URL and download them with the plugin. Downloading the QR codes makes sharing the coupons easier.

Download QR Code for each URL coupon

When a user scans the QR code (provided the underlying coupon conditions are met) the respective coupon code will be automatically applied to the cart.

Checkout by clicking on URL Coupon

You can even place these coupon codes outside your web store, say on social media, to catch the eye of users who have never before engaged with your store.

Some of the benefits of using URL Coupons are:

  • Automatically apply WooCommerce coupon discounts to customer’s cart
  • Redirect customers to a specified page after the coupon application
  • Increase conversion by bypassing manual coupon application
  • Generate personalized coupon URLs to reward customers


The URL coupons are a better alternative than the usual coupon code fields. They are a real conversion killer as customers often leave your site in search of coupons, and may not return.

URL coupons give you the flexibility to redirect the customers to the cart and automatically apply coupons without any manual intervention. The QR code coupon capabilities of the URL coupons for WooCommerce plugin are a good way to make your print advertising actionable.

Know more about our other coupon extension plugin, Smart coupon for WooCommerce.