Let’s say you want to give a 20% discount to the person that came through a referral link.
The first thing you need to do is create a coupon that will apply to every person who came through a referral link.
1. Go to Woocommerce -> Coupons and create a new coupon.
2. Match the settings to those on the screenshot below (click to zoom in). Add a name to the coupon (I named it guest_coupon), make the type percentage discount, and add a coupon amount:
![](https://wpgens.com/wp-content/uploads/2023/11/woocommerce-refer-a-friend-How-to-give-a-discount-to-the-person-who-came-through-the-referral-link-guest-1024x369.png)
3. Go to Plugins settings ( WooCommerce -> Settings -> Refer a friend tab), then go to Referred person coupon settings tab, and at the bottom of that tab match the settings to the screenshot below:
That’s it!