Currncy code with symbol display on all products
-
I would like to display currency code together with symbol an all prices in the store: “USD $” or “CAD $” depending on what is selected in booster’s Currency Switcher module. I tried the code below I found for WooCommerce in functions.php, but it had no effect. Maybe your plugin handles currencies differently? There is a setting for displaying currency code in the switcher dropdown, which I configured, but I don’t see setting for the rest of the site.
Please advise. Here’s what I tried without success:
// Add currency code
function romandesign_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case ‘USD’:
$currency_symbol = ‘USD $’;
break;
case ‘CAD’:
$currency_symbol = ‘CAD $’;
break;
}
return $currency_symbol;
}
add_filter(‘woocommerce_currency_symbol’, ‘romandesign_currency_symbol’, 30, 2);The page I need help with: [log in to see the link]
- The topic ‘Currncy code with symbol display on all products’ is closed to new replies.