How to change the currency symbol
-
Hello,
In Morocco our currency is Moroccan Dirhams symbolized in latin words as : (MAD).
The arabic symbol is د.م
I want to change the currency to MAD instad of د.م
How to do so ?
Attachments:
You must be
logged in to view attached files.
Hi contact.badrdigital,
Thanks for reaching to us.
Navigate to WooCommerce > Settings > General.
Select the desired currency from the Currency Options
dropdown menu https://ibb.co/HgWVcsq.
Best Regards.
Hello,
Thanks for your prompt answer.
I need that the store show MAD not د.م
Please check the image attached
Thanks
Attachments:
You must be
logged in to view attached files.
Hi contact.badrdigital,
Try to add the following PHP code snippet to the child theme functions.php file to see if it works.
/**
* Change a currency symbol
*/
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'MAD': $currency_symbol = ' MAD'; break;
}
return $currency_symbol;
}
Regards,
Thank you
If I want to change MAD (marrocan dirhams : english) to DHS (Dirhams : french)
How i can do it ?
Hi contact.badrdigital,
Please refer to this documentation article for more details https://woocommerce.com/document/change-a-currency-symbol/
Regards,
The topic ‘How to change the currency symbol’ is closed to new replies.