Automatically apply discount to the WooCommerce cart with a public coupon URL

A few months ago Gumroad added a new feature that allows to generate URLs for each of coupon codes that can be used to automatically apply the discount to the checkout cart.

I thought that this feature might be also very useful for WooCommerce users and since now it is available for all Permalink Manager Pro users.

The main advantage is that the customer does not need to search for a field where a discount code can be pasted or typed. This might help you to reduce the abandoned rate and improve other e-commerce indicators, eg. conversions ratio.

Extension for WooCommerce’s coupons functionality

When Permalink Manager Pro is enabled, a new section titled “Coupon Link” will be displayed in “Edit Coupon” page which can be accessed from “WooCommerce -> Coupons“.

To set-up public URL for a coupon code, all you need to do is to define a unique URI, eg. FREEDELIVERY and save the coupon code. The URIs are case-insensitive, so both and will work.

The full URL will be displayed below the input field and then you can copy and use it in eg. newsletter or share the link via social media.

How does the public coupon URL work?

When user goes to the link, eg. the discount will be automatically applied to the cart. All “usage restrictions” (eg. expiry date, minimum/maximum spend value, etc.) will be preserved, so it is not possible to abuse the order by only using a public link, because WooCommerce will still validate if the customer is eligible to receive the discount.

After the coupon URL is used the discount is automatically applied and the visitor redirected to cart page or shop page (if no products are added to the cart).

Is it possible to use the coupon URL even if the cart is empty?

Yes, in this case – the visitor will be redirected to main shop page (if it is set in WooCommerce settings) where an alert should be displayed (Coupon code applied successfully). After any product is added to the cart, the discount will be automatically applied (only if customer is eligible to use it) to the cart.

Video tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *