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?

3 Responses to Totals

  1. George January 5, 2021 at 8:30 pm #

    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 January 5, 2021 at 4:14 am #

    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. George January 4, 2021 at 11:57 am #

    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

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

AffiliatesContactJobsTerms & ConditionsPrivacy PolicyDocumentationDownloadsUseful PluginsMy Account

Share