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


Comments

2 responses to “Rates % less than 1”

  1. Thank you – worked.

  2. 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

Share