• Currency conversion to doesn’t seem to set currency to INR.

    This leads to ccavenue error: 31002 (Invalid parameter)

    Setting $the_currency = 'INR'; inside if($this->enable_currency_conversion=='yes') block worked for me.

    I would like to contribute to the development of the plugin.
    Is there Github/Bitbucket link for the plugin so that I can make a pull request?

    • This topic was modified 7 years, 8 months ago by onerinas.
    • This topic was modified 7 years, 8 months ago by onerinas.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nilesh0308

    (@nilesh0308)

    Hello there,

    Thanks for your time to look into it, can you please specify me what is the issue you found here :
    $the_currency = get_woocommerce_currency();
    $the_order_total = $order->order_total;
    if($this->enable_currency_conversion==’yes’)
    {
    $the_order_total = $this->currency_convert($the_currency, ‘INR’, $the_order_total);
    }
    this is the code which I have used for conversion of currency, please specify me the issue.

    Thanks

    Thread Starter onerinas

    (@onerinas)

    $the_currency = get_woocommerce_currency();
    $the_order_total = $order->order_total;
    if($this->enable_currency_conversion==’yes’)
    {
    $the_currency = ‘INR’;
    $the_order_total = $this->currency_convert($the_currency, ‘INR’, $the_order_total);

    }

    Please note the 1st line inside if block. Needed to add that.

    Im listing products in $ and making conversion to INR, which is good.
    But at the end CCAvenue still gets the currency code as Dollar instead of INR.

    CCAvenue needs currency as INR to work, else below produces below error:

    ccavenue error: 31002 (Invalid parameter)

    So added $the_currency = 'INR'; in the if block.

    What do you think… Am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible Bug: Currency conversion’ is closed to new replies.