Plugin: WooCommerce – currency symbol
-
Hi all,
Can someone help with this issue.
I have just installed woocommerce I go to woocommerce->setttings and change the currency symbol from Pounds to Euros (also tried dollars etc) in my sites back end all woocommerce reports etc show € symbol but when I navigate to my site the shopping cart symbol is £.
I noticed when the site loads the symbol is briefly set to € but quickly changes to £. Even if I change the position of the symbol to right it goes back to the left.
I have tried adding the following to functions.php but still it changes back to pound.
add_filter( 'woocommerce_currencies', 'add_my_currency' ); function add_my_currency( $currencies ) { $currencies['Euro'] = __( 'Currency name', 'woocommerce' ); return $currencies; } add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2); function add_my_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case 'Euro': $currency_symbol = '€'; break; } return $currency_symbol; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin: WooCommerce – currency symbol’ is closed to new replies.