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
- Go to WooCommerce → Refer a Friend → Settings → Display Settings.
- Under Thank You Page, turn on Show on Thank You page.
- To show it in a popup, turn on Show as Modal. Set Delay modal opening in seconds, for example
2. - Click Save.

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:
- Turn off Show on Thank You page.
- Create a popup with your text and the
[WOO_GENS_RAF_ADVANCE]shortcode. - Set the popup to show on the order received page. In Popup Maker, that’s the condition Is endpoint with order-received.
- 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.