i want to use instead of old Dirham currency symbol to new symbol in Dubai dirham symbol has been change from د. إ to D (Dirham currency symbol) Please update in my theme if possible thanks
This topic has 6 replies, 2 voices, and was last updated 2 weeks ago ago by Luca Rossi
i want to use instead of old Dirham currency symbol to new symbol in Dubai dirham symbol has been change from د. إ to D (Dirham currency symbol) Please update in my theme if possible thanks
Dear @Yahoo Souq,
We kindly request that you add the following code to the functions.php file located within your child theme:
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'AED': $currency_symbol = 'D'; break;
}
return $currency_symbol;
}
This code will modify the currency symbol for AED as needed.
We hope this solution proves helpful. Should you have any further questions or require assistance, please do not hesitate to reach out.
Best regards,
The 8Theme Team
Sorry i could not find where to place this code can you send me any link
Dear @Yahoo Souq,
We hope this message finds you well.
In order to review and verify your current settings, we kindly request temporary access to your WordPress admin panel. To facilitate this, please create a new user account with Administrator privileges via your WordPress Dashboard.
Once the account has been created, we would appreciate it if you could securely share the login credentials with us through the Private Content section provided for this purpose.
Thank you for your cooperation and support.
Best regards,
The 8Theme Team
This is Dirham Currency new symbol i want to display on my website i try that code it shows only D not same as currency symbol
Dear @Yahoo Souq,
We hope this message finds you well.
It appears that a font file may also be required for proper implementation. For your reference, please review the following article:
https://github.com/abdulrysrr/new-dirham-symbol
Additionally, you can find detailed instructions on how to install a custom font using XStore in the documentation below:
https://www.8theme.com/documentation/xstore/xstore-features/how-to-setup-custom-fonts-with-xstore/
Should you have any further questions or need assistance, please do not hesitate to reach out.
Best regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up