Title: Currency switching problem
Last modified: October 14, 2017

---

# Currency switching problem

 *  Resolved [Karan](https://wordpress.org/support/users/peeyooshk/)
 * (@peeyooshk)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/currency-switching-problem/)
 * Hello:
 * On our store the base currency is USD and our FedEx account is INR based. The
   currency conversion for the shipping rate does not happen when showing upon checkout.
   The currency symbol does change but the currency amount conversion does not happen.
 * Regards

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [xadapter](https://wordpress.org/support/users/xadapter/)
 * (@xadapter)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9590707)
 * Hi [@peeyooshk](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/peeyooshk/)
 * (@peeyooshk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9689939)
 * There is no such option as conversion rate in the plugin settings.
 *  [xadapter](https://wordpress.org/support/users/xadapter/)
 * (@xadapter)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9689989)
 * Hi [@peeyooshk](https://wordpress.org/support/users/peeyooshk/),
 * Apologies. That option is available in the [premium version](https://www.xadapter.com/product/woocommerce-fedex-shipping-plugin-with-print-label/).
 * 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](https://wordpress.org/support/users/peeyooshk/)
 * (@peeyooshk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690009)
 * 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?
 *  [xadapter](https://wordpress.org/support/users/xadapter/)
 * (@xadapter)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690310)
 * 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](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](https://wordpress.org/support/users/peeyooshk/)
 * (@peeyooshk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690386)
 * Thanks a ton man. Really appreciate it.
 * Shall i place it in Theme functions.php or plugin functions.php?
 * Regards
 *  [xadapter](https://wordpress.org/support/users/xadapter/)
 * (@xadapter)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690393)
 * Hi [@peeyooshk](https://wordpress.org/support/users/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://wordpress.org/plugins/fedex-woocommerce-shipping-method/#reviews](https://wordpress.org/plugins/fedex-woocommerce-shipping-method/#reviews)
 *  Thread Starter [Karan](https://wordpress.org/support/users/peeyooshk/)
 * (@peeyooshk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690458)
 * I tried putting it in theme functions but the conversion did not happen. Still
   shows the same.
 *  [xadapter](https://wordpress.org/support/users/xadapter/)
 * (@xadapter)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690466)
 * Hi [@peeyooshk](https://wordpress.org/support/users/peeyooshk/),
 * Can you please raise this as a[ ticket](https://support.xadapter.com/hc/en-us).
 * We will check it out.
 *  Thread Starter [Karan](https://wordpress.org/support/users/peeyooshk/)
 * (@peeyooshk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690492)
 * 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;
 *  [xadapter](https://wordpress.org/support/users/xadapter/)
 * (@xadapter)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690502)
 * Hi [@peeyooshk](https://wordpress.org/support/users/peeyooshk/),
 * Great to know that figured it out.
    So now it is working for you right?

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Currency switching problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fedex-woocommerce-shipping-method_336c83.
   svg)
 * [Fedex WooCommerce Shipping Method Plugin](https://wordpress.org/plugins/fedex-woocommerce-shipping-method/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fedex-woocommerce-shipping-method/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fedex-woocommerce-shipping-method/)
 * [Active Topics](https://wordpress.org/support/plugin/fedex-woocommerce-shipping-method/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fedex-woocommerce-shipping-method/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fedex-woocommerce-shipping-method/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [xadapter](https://wordpress.org/support/users/xadapter/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/currency-switching-problem/#post-9690502)
 * Status: resolved