Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Currency Symbol Change
- This topic has 8 replies, 2 voices, and was last updated 1 year, 1 month ago by J. Davis.
- AuthorPosts
- July 9, 2018 at 3:22 am #697550ManojParticipant
Hi
We have selected United Arab Emirates Dirham as the currency and we get currency symbol in Arabic letters. Instead of that we just need AED as a symbol and we tried below code from another topic to create a new currency.add_filter( ‘mprm_currencies’, ‘add_my_currency’ );
function add_my_currency( $currencies ) {
$currencies[‘TEST’] = __( ‘Currency name’, ‘mprm’ );
return $currencies;
}but nothing happened. Please guide us to change it to AED in place of Arabic letters.
Thanks and Regards
Manoj KB
July 10, 2018 at 2:49 pm #698060J. DavisKeymasterHi Manoj,
We are going to update currency list in a new version. Stay tuned to to miss this release.
Meanwhile you can use the code below to edit currency label of United Arab Emirates Dirhamadd_filter('mphb_currency_symbols', 'change_aed_currency_symbol', 10, 2); function change_aed_currency_symbol ( $currency_symbol ) { $currency_symbol['AED'] = ('AED'); return $currency_symbol; }
July 10, 2018 at 4:12 pm #698106ManojParticipantHi J. Davis
It worked perfectly for us. Great support and waiting for the new version.
Thanks and Regards
Manoj
December 25, 2018 at 3:04 pm #754968Stacy LindKeymasterAll the missing currencies were added in version 2.7.5 of MotoPress Hotel Booking.
September 24, 2023 at 12:26 pm #1507901Patricia LlonchParticipantHi! I would like to use “USD” or “u$s” or any similar symbol to indicate our prices are set in american dollars, instead of plain “$”, which can be taken as argentinian pesos.
Thank you in advance!September 28, 2023 at 5:06 am #1510068J. DavisKeymasterHi Patricia,
Yes here is an example for USD:add_filter('mphb_currency_symbols', 'change_usd_currency_symbol'); function change_usd_currency_symbol ( $currency_symbol ) { $currency_symbol['USD'] = ('USD'); return $currency_symbol; }
September 28, 2023 at 6:32 am #1510108Patricia LlonchParticipantThank you very much, J!
October 5, 2023 at 8:53 am #1512794Patricia LlonchParticipantThis reply has been marked as private.October 18, 2023 at 9:22 pm #1518062J. DavisKeymasterHi Patricia,
Please make sure you added the code to the end of the functions.php file. I tested the code and it worked correctly
- AuthorPosts
- You must be logged in to reply to this topic.