Total balance is Not Converting After Switching to Other Currency
-
Dear I have added function Code that
function woo_wallet_amount_cashback($amount, $currency) {
if (class_exists(‘WC_Aelia_CurrencySwitcher’)) {
if(!$currency){
$currency = Aelia\WC\CurrencySwitcher\WC_Aelia_CurrencySwitcher::settings()->base_currency();
}
$site_currency = get_woocommerce_currency();
$WC_Aelia_CurrencySwitcher = Aelia\WC\CurrencySwitcher\WC_Aelia_CurrencySwitcher::instance();
$amount = $WC_Aelia_CurrencySwitcher->convert($amount, $currency, $site_currency );
}
return $amount;
}But Still some minor Bug.
its Convert currency of Transaction in My account .
But Total balance is Not Converting.My Base Currency is INR
The Screen Shots are as follows: https://i.postimg.cc/65jFTjhH/Screen_Shot_2018-09-19_at_10.35.12_AM.png
https://i.postimg.cc/9QDK9d8c/Screen_Shot_2018-09-19_at_10.36.03_AM.png
https://i.postimg.cc/6pFSf8gn/Screen_Shot_2018-09-19_at_10.36.39_AM.png
https://i.postimg.cc/hGxYySRw/Screen_Shot_2018-09-19_at_10.37.10_AM.png
https://i.postimg.cc/DZTMRt2z/Screen_Shot_2018-09-19_at_10.37.35_AM.pngThe page I need help with: [log in to see the link]
- The topic ‘Total balance is Not Converting After Switching to Other Currency’ is closed to new replies.