Currency Symbol Change

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #697550
    Manoj
    Participant

    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

    #698060
    J. Davis
    Keymaster

    Hi 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 Dirham

    add_filter('mphb_currency_symbols', 'change_aed_currency_symbol',  10, 2);
    
    function change_aed_currency_symbol ( $currency_symbol ) {
        $currency_symbol['AED'] = ('AED');
        return $currency_symbol;
    }
    #698106
    Manoj
    Participant

    Hi J. Davis

    It worked perfectly for us. Great support and waiting for the new version.

    Thanks and Regards

    Manoj

    #754968
    Stacy Lind
    Keymaster

    All the missing currencies were added in version 2.7.5 of MotoPress Hotel Booking.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.