Rates % less than 1

I am entering a multi tier rate less than 1% – / for example 0.5% – when entering 0.005 in the rates section – the rate turns out to become 0.00000

How is this handled ? – how can i set 0.5 or less % in the rates ?

brgds

2 Responses to Rates % less than 1

  1. jzntech April 20, 2019 at 7:36 am #

    Thank you – worked.

  2. George April 20, 2019 at 12:35 am #

    Hi Patrick,

    Please edit your functions.php file and add the following snippet:

    function affiliates_change_decimals_example( $decimals, $context ) {
    if ( $context === 'display' ) {
    $decimals = 5;
    } else {
    $decimals = 5;
    }
    return $decimals;
    }
    add_filter( 'affiliates_referral_amount_decimals', 'affiliates_change_decimals_example', 10, 2 );

    This filter will allow to use the desired decimals.

    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