New: Revenue First Analytics. See which channels actually drive your WooCommerce revenue. Learn more →

Show the referral link after checkout

Last updated

Right after a purchase is the best moment to ask customers to refer a friend. You can show the referral section on WooCommerce’s order received page, on the page or in a popup. No code is needed.

Turn it on

  1. Go to WooCommerce → Refer a Friend → Settings → Display Settings.
  2. Under Thank You Page, turn on Show on Thank You page.
  3. To show it in a popup, turn on Show as Modal. Set Delay modal opening in seconds, for example 2.
  4. Click Save.
Order received page with the referral section

What customers see

  • Customers with an account see their own link, code and share buttons.
  • Guests see a link created from the email on their order, if Enable referral links for guests is on. They don’t need to fill in the guest form.
  • Guests without guest referrals see the shortcode’s default text, which asks them to register.

The section is the same as the [WOO_GENS_RAF_ADVANCE] shortcode, so it uses your Display Settings texts and share buttons.

Custom thank-you pages

The section is added with WooCommerce’s woocommerce_thankyou hook. Some checkout and thank-you page plugins replace the page without running that hook, and the section doesn’t appear. In that case, add [WOO_GENS_RAF_ADVANCE] to your custom thank-you page with a shortcode block. Logged-in customers see their link. Guests see the guest form or the guest text.

Use your own popup plugin

If you’d rather design the popup yourself, for example with Popup Maker:

  1. Turn off Show on Thank You page.
  2. Create a popup with your text and the [WOO_GENS_RAF_ADVANCE] shortcode.
  3. Set the popup to show on the order received page. In Popup Maker, that’s the condition Is endpoint with order-received.
  4. Set it to open automatically.

Refer a Friend also adds a Referral link condition to Popup Maker. It shows a popup to visitors who arrive through a referral link, which is useful for welcoming referred friends.

Check it worked

Place a test order. The order received page should show the referral section, or open it in a popup after your delay.

Related

Browse our plugins

Lightweight WooCommerce plugins built for speed. No bloat, no frameworks -- just clean code that works.

View all plugins
Stay in the loop

Get notified when we launch new plugins. No spam, just product updates.