I'm using a theme that display hotel rooms with a $ currency. But, I wish to display € as currency.
When requested the theme developer says, define currency in WooCommerce. That works great, because theme use this to display currency.
Perhaps, we don't use WooCommerce on this site, so when I deactivate WooCommerce, currency goes back to $ !
The theme developer has no idea on how to handle this. So I make my search.
I do find the function that define the currency if woocommerce is not installed. It comes with a plugin linked to the theme.
if ( ! function_exists('mkdf_hotel_room_get_currency') ) {
/**
* Get currency
* @return string of currency that is used in woocommerce or default currency
*/
function mkdf_hotel_room_get_currency() {
$currency = '$'; // default currency if woocommerce is not installed
if ( fivestar_mikado_is_woocommerce_installed() ) {
$currency = get_woocommerce_currency_symbol( get_woocommerce_currency() );
}
return $currency;
}
}
So now, the question, is how can I do to change this currency thru my functions.php ? I don't want to change it in this code, to handle updates.