into file functions.php of the current WordPress theme add next code
add_filter('woosb_item_price_before_set', function ($_price, $cart_item) {
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed AND $_price) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$_price = $_price / $rate;
}
}
}
return $_price;
}, 10, 2);
🌸
Shortcodes, functions, actions and filters reference for FOX WooCommerce Currency Switcher
Codex — FOX Currency Switcher
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.