Totals

Hey there and Happy New Year,
I noticed that the totals have 4 zeros attached to the number. I was wondering if there was a way to remove those extra zeros from the totals?


Comments

3 responses to “Totals”

  1. Hi Michael,

    Thanks for the follow-up here, thought you meant Affiliates > Totals section in the back-end.
    For the front-end I would recommend you to use the latest addition we have for that purpose, Affiliates Dashboard and more specifically the Overview section. It will render detailed statistics for the logged-in affiliate and apart from that it’s easier to setup, you only need to use the shortcode [affiliates_dashboard] on a page and it will render the full set needed by your affiliates to view their performance, statistics, earnings but also their profile information.

    In the meantime I’ll keep a note to further check the [affiliates_affiliate_stats] shortcode and especially the amount of decimals used.

    Kind regards,
    George

  2. Michael Hines Avatar
    Michael Hines

    Thanks George,
    I am using the [affiliate s_affiliate_stats] shortcode, with the conditions show _totals_pending=”false” show _totals_closed=”false” show _totals_accepted=”true”.

    When i remove the constant of 2, nothing changes and there are 4 zeroes remaining behind the decimal. Is there another way or what am I doing wrong?

  3. Hi Michael, Happy New Year to you too! 🙂

    The default option for decimals is 2 and therefore you’re probably using the filter hook affiliates_referral_amount_decimals or the equivalent constant AFFILIATES_REFERRAL_AMOUNT_DECIMALS overriding the default option. If you temp disable the filter or remove the constant, you will get again the default decimals displayed.

    Kind regards,
    George

Share