-
-
Save ibndawood/1a601ae6d2952b8b1651c83001264fb8 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_currency_symbol', 'wc_change_uae_currency_symbol', 10, 2 ); | |
function wc_change_uae_currency_symbol( $currency_symbol, $currency ) { | |
switch ( $currency ) { | |
case 'AED': | |
$currency_symbol = 'AED'; | |
break; | |
} | |
return $currency_symbol; | |
} |
Awesome
Hi ibndawood -I'm gonna paste that code to my Parent Theme Editor? functions.php?
You need to add this to your child theme's functions.php. Please use a child theme for all your customisations.
Amazing, Thank you
@Eddies1207 - You are welcome. Please do check out our premium themes here: https://madrasthemes.com/
Thank you, Working perfectly :-)
Hi Guys, Hope you good. Yar I want to change the symbol to AED but its not working in my child theme function.php file ...i copied the same code and paste it in the last bottom
Just download the CURCY plugin, which gives you 2 free currencies which you can make 1 as default. No need to pay anything
HI! Even after pasting this code in Function.php, it isn't changing. I've also tried multiple plugins still the same issue. Please help
Thank you