referral_rate and referral_amount shortcode not working

Posted in

Hi,

Am using Affiliates Pro and trying to use the [affiliates_affiliate_profile] shortcode to display the referral rate, however, it doesn’t seem to be working.

I’m using the following code and the only thing that displays is coupons… nothing for referral amount, nor for referral rate.

[affiliates_affiliate_profile show_name=”” show_email=”” show_attributes=”referral_amount, referral_rate, coupons”]

Any assistance you can provide is greatly appreciated – thanks!

3 Responses to referral_rate and referral_amount shortcode not working

  1. George May 30, 2016 at 8:22 am #

    Hi Michael,

    Sorry for the late reply.

    There was a mistype in the documentation and the shortcode parameters were wrong.
    The correct values are:
    [affiliates_affiliate_profile show_attributes="referral.rate" /] to display the referral rate.
    [affiliates_affiliate_profile show_attributes="referral.amount" /] to display the referral amount.
    [affiliates_affiliate_profile show_attributes="coupons" /] to display affiliate coupon attribute.
    [affiliates_affiliate_profile show_attributes="paypal_email" /] to display affiliate paypal email attribute.

    Kind regards,
    George

  2. Michael May 25, 2016 at 2:17 pm #

    Hi,

    I have set a referral rate for the affiliate under Affiliates>Manage Affiliates> +New Attribute> Referral Rate as key, 0.25 as value. If this is the value that is supposed to appear with the shortcode I provided, it is not appearing (nothing appears; no heading, no box, no content in the box). Additionally, there is no coupon set up for the affiliate, yet the heading ‘Coupons’ appears with an empty box with the shortcode.

    Is there different shortcode to use that would show the referral rate for the affiliate, regardless of whether it is set as a default commission in Settings>Commissions /// Woocommerce Integration>Enable product referral rates OR Affiliates>Manage Affiliates> +New Attribute> Referral Rate … basically, I want to display to the affiliate the minimum commission rate they are getting. Example: default rate is 10%, affiliate A is at 20%, affiliate B is at default. Code to display 20% to customer A and 10% to customer B?

    Any suggestions/advise is appreciated – thanks!

  3. George May 24, 2016 at 6:24 pm #

    Hi Michael,

    Please note that this shortcode will render affiliates’ attributes and not the referral rate or amount set for the affiliates program under Affiliates>Settings>Commissions. If the logged affiliate has set only the coupon attribute then only this attribute will be displayed.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share