Refer A Friend – Shortcodes

Since each of these shortcodes are dynamic, page caching must be disabled on any page where they are used. Please note all shortcodes are not for use in emails, instead use AutomateWoo variables.

  • [automatewoo_referrals_page] – This displays the referral share form on the referral share page nominated in the referral settings.
  • [automatewoo_referrals_share_widget] – Displays the referral sharing widget. The links in the widget are dynamic and differ for each user. The widget heading uses an h3 element by default. To fit the widget into your page’s heading hierarchy, set the optional heading_level attribute to h1, h2, h3, h4, h5, or h6. For example: [automatewoo_referrals_share_widget heading_level="h2"]. Choose the level that follows the surrounding heading structure. This helps people using screen readers understand and navigate the page. Do not choose a level only for its visual size. If you omit the attribute or use an unsupported value, the widget uses h3.
  • [automatewoo_referrals_account_tab] – This shortcode can be used if your theme does not support the new WooCommerce tabbed account area (adding in v2.6). It displays the advocates’ approved referrals and their store credit balance.
  • [automatewoo_advocate_referral_coupon] – This is used to display the unique referral coupon code for the advocate. This shortcode is to be used with coupon-based referrals. If the advocate is not logged in, it cannot display the coupon.
  • [automatewoo_advocate_referral_link] – This is used to display the referral link for the advocate. This shortcode is to be used with link-based sharing. If the advocate is not logged in, it cannot display the referral link.

Related Products

Offer Royal Mail shipping rates to your customers.

Get shipping rates from the Canada Post Ratings API which handles both domestic and international parcels.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.