Hi @peeyooshk,
We can confirm that the currency conversion rate will work without any problems.
You need to define the currency and then also define the conversion rate as shown below :
https://ibb.co/d8h1gR
Once you do this it should show the converted rate. If that is not happening can you please show us screenshots of :
– conversion rate
– response showing the actual rate in INR coming from API (which needs to be converted into USD).
We will check it out.
Thread Starter
Karan
(@peeyooshk)
There is no such option as conversion rate in the plugin settings.
Hi @peeyooshk,
Apologies. That option is available in the premium version.
In the basic version of the plugin, you have the field “Rates in base currency”. Can you please enable that and then see if that is converting. If not, that means FedEx API does not have the conversion rate for USD to INR.
In that case, going premium seems the likely option.
Let us know if you have any query.
Thread Starter
Karan
(@peeyooshk)
ahh ok.
Rates in base currency also did not work. I already tried that.
As i do not need any shipping label or other support is it possible to have just the currency conversion in this free version or if you could share some code i can add to the plugin to get the conversion done based on fix conversion rate?
Hi
We made a code snippet just now for you so that you can use the currency conversion feature.
Here is the snippet link – https://gist.githubusercontent.com/xadapter/01827aa5065ed17afa4c0cb20f2f1af3/raw/b7bb7eb42cf228dfe8c6dfc0a7caa23122fdafd2/functions.php
You can set the conversation value and copy the snippet in functions.php
Thread Starter
Karan
(@peeyooshk)
Thanks a ton man. Really appreciate it.
Shall i place it in Theme functions.php or plugin functions.php?
Regards
Hi @peeyooshk,
Yes, you need to place it in theme’s functions.php.
You can always drop in a review if you liked our support – https://ww.wp.xz.cn/plugins/fedex-woocommerce-shipping-method/#reviews
Thread Starter
Karan
(@peeyooshk)
I tried putting it in theme functions but the conversion did not happen. Still shows the same.
Hi @peeyooshk,
Can you please raise this as a ticket.
We will check it out.
Thread Starter
Karan
(@peeyooshk)
Our store base currency is USD. Fedex returns rates in INR.
So in your code instead of .015 i mentioned 65 and instead of
$value->cost = $value->cost * $conversion_rate;
i mentioned
$value->cost = $value->cost / $conversion_rate;
Hi @peeyooshk,
Great to know that figured it out.
So now it is working for you right?