Attributes of affiliates_earnings shortcode

Hi there,

Please let me know detailed information of affiliates_earnings shortcode.
This shortcode showing affiliate earnings per month of status of “ACCEPTED”.
I would like to show status of “CLOSED”
I tried affiliates_earnings status=”closed” in guesswork, but it is not take effect.

Thank you.


Comments

7 responses to “Attributes of affiliates_earnings shortcode”

  1. Hi

    I have one more question.

    How to eliminate the decimal point of the amount of money that is displayed in shortcode below.(example JPY1000.00 —> JPY1000)

    – affiliates_referrals show=”total”

    – affiliates_earnings

    – affiliates_affiliate_stats /

    Thank you

    1. Hi,
      you can set the decimals in affiliates-pro/lib/core/constants.php (AFFILIATES_REFERRAL_AMOUNT_DECIMALS), but this also affects the commissions.
      Or a better solution is create your own shortcodes (for example: affiliates_referrals_decimals, …). You can see the code in affiliates-pro/core/class-affiliates-shortcode.php.
      cheers

  2. Could you give me attribute information of this shortcorde ?

    1. \[affiliates_earnings\] is works but accepted status.

      \[affiliates_earnings status="closed"\] is not work.

      \[affiliates_earnings status="pending"\] is not work.

      \[affiliates_earnings status="regected"\] is not work.

      Ofcourse it is in text mode and affiliate has several closed referrals.

      1. Sorry,
        my test was wrong. [affiliates_earnings] doesn’t accept attributes. Maybe [affiliates_referrals] shortcode can help you.
        cheers

        1. Hi Antonio,

          Thanks. I understand.

          Regards

  3. Hi,
    I have tried this shortcode (copy-paste) and works fine.
    Be sure you are using the texteditor in “Text” mode and that the affiliate has some referral closed.
    cheers

Share