$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?
any quick hack to fix this?