• Resolved kalim99

    (@kalim99)


    I am trying like this and it is not working.

    add_filter( ‘rpress_currency_symbol’, $symbol, $currency );
    function rpress_currency_symbol( $symbol, $currency ) {
    switch( $currency ) {
    case ‘UAE Dirham’: $symbol = ‘AED’; break;
    }
    return $symbol;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Bibhu Prakash Ota

    (@bibhu1995)

    Hello kalim99,

    Please try this code and let us if still you have any issues.
    //Add your custom currency
    add_filter( ‘rpress_currencies’, ‘rpress_add_currency’ );
    function rpress_add_currency( $currencies ) {
    //Replace with the currecy you want
    $currencies[‘AED’] = __( ‘UAE Dirham’, ‘restropress’ );
    return $currencies;
    }

    Regards,
    Bibhu

    Plugin Contributor Bibhu Prakash Ota

    (@bibhu1995)

    After add this code through the child theme, you must have to select from the restropress setting, currency list.

    Thread Starter kalim99

    (@kalim99)

    Thank you for the response. Now i am using different plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I change currency symbol’ is closed to new replies.