WooCommerce Refer a Friend Shortcodes

WooCommerce Refer a Friend supports 2 types of shortcodes you can use to show a referral link to your customers:

  • Simple shortcode
  • Advanced shortcode

Simple shortcode #

The simple shortcode:  [WOO_GENS_RAF] will show just a referral link for users who are logged in. Use the URL parameter in the shortcode to link to some other page – by default, it’s set to the homepage.

Advanced Shortcode #

The advanced shortcode comes with social icons and email shareability:

WooCommerce Refer a Friend Shortcodes Advanced Shortcode

This is the shortcode you can use:

[WOO_GENS_RAF_ADVANCE guest_text='Please login <a href="login_url">here</a> to access your referral link.']

In general, you want to create a landing page that will have a piece of text explaining the benefits of the referral system, then include a shortcode below it. The shortcode will show only for logged-in users, while for guests, you can define which message to show as a parameter – as you can see in the shortcode example above. You can pass url=” parameter if you want referral link to land on specific page.

Full Shortcode to replicate My Account Page #

Some custom themes do not use WooCommerce built-in filters, so sometimes you need to add a custom tab with the content. In that case, Refer a friend tab on the My account page will not show and you need to use [WOO_GENS_RAF_FULL] shortcode to replicate the My Account page.

Contact Form 7 Shortcode #

Check this article that explains the usage of Contact Form 7.

What they say

Trusted by 7000+ customers

Our plugins are used by more than 7000 websites across the globe. All of our plugins are rated 5 stars on WordPress.org. Don’t just take our word for it, check what others are saying about WPGens.

I bought and tested the plugin with WooCommerce Subscription and it works like a charm. I had some specific questions to the developer and he responded very fast and helped me. I suggest the plugin!

Refer a Friend PREMIUM

If your looking to set up a referral program on your WooCommerce site to boost up your site sale “Refer A Friend for WooCommerce by WPGens” is your plugin to go for. Little blown away with an amazing support provided from (Goran) the plugin working exactly what you want to set up a referral system. Good job guys!

Refer a Friend PREMIUM

We deal with dozens of applications and plugins on a daily basis. Many of them are excellent, but few have truly excellent support. The Refer A Friend plugin is one of them: the response to my questions is always fast, friendly and very helpful.

Refer a Friend PREMIUM

This plugin is awesome. It looks good, it’s light weight, has great support – everything you can expect from a paid plugin, only it’s free!!!!

Swifty Bar

Read all testimonials on WordPress Repository.

Get notified when we add new plugins.

We do not publish plugins often, but when we do, it's something awesome. No spam, we promise.