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
h3element by default. To fit the widget into your page’s heading hierarchy, set the optionalheading_levelattribute toh1,h2,h3,h4,h5, orh6. 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 usesh3. - [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.