Indian currency issue in referral.

hello ,i just purchase your enterprise solutions. but we face major issue that in your plugin Indian currency rupee is not added by default. it may crate error while using pay per click or visit or other applications.
plz add this currency by default and help me to fix this.

3 Responses to Indian currency issue in referral.

  1. chawadi October 7, 2018 at 12:18 pm #

    hi
    is this code total code? bocz i dont know regarding coding and othors? where it is pasted in function.php ? in last line or where?

    is this total code :::::

    add_filter ( ‘affiliates_supported_currencies’, ‘example_affiliates_new_currency_code’, 1, 1 );
    function example_affiliates_new_currency_code( $currency_code ) {
    $currency_code[] = ‘INR’;

    return $currency_code;
    }

    • Kento October 12, 2018 at 5:14 am #

      Hi,

      Yes, you can add that at the end of your theme’s functions.php but please use the proper punctuation and syntax:

      add_filter( 'affiliates_supported_currencies', 'affiliates_supported_currencies_inr' );
      function affiliates_supported_currencies_inr( $currencies ) {
          $currencies[] = 'INR';
          return $currencies;
      }

      Cheers

  2. George September 24, 2018 at 10:58 am #

    Hi Chawadi,

    You can add any currency manually by adding the following snippet in functions.php of your active theme or create a new plugin with this code.
    add_filter ( ‘affiliates_supported_currencies’, ‘example_affiliates_new_currency_code’, 1, 1 );
    function example_affiliates_new_currency_code( $currency_code ) {
    $currency_code[] = ‘INR’;

    return $currency_code;
    }

    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