• Hi there!
    Nice plugin!
    I work for one of my client and to go one with your plugin I edit em-functions.php and I add new currency for my country. But you know, after updates… its gone!

    So, please, can you add the new currency for our country Romania?

    Look what I modify:

    function em_get_currencies(){
    	$currencies = new stdClass();
    	$currencies->names = array('EUR' => 'EUR - Euros','USD' => 'USD - U.S. Dollars','GBP' => 'GBP - British Pounds','CAD' => 'CAD - Canadian Dollars','AUD' => 'AUD - Australian Dollars','BRL' => 'BRL - Brazilian Reais','CZK' => 'CZK - Czech Koruny','DKK' => 'DKK - Danish Kroner','HKD' => 'HKD - Hong Kong Dollars','HUF' => 'HUF - Hungarian Forints','ILS' => 'ILS - Israeli New Shekels','JPY' => 'JPY - Japanese Yen','MYR' => 'MYR - Malaysian Ringgit','MXN' => 'MXN - Mexican Pesos','TWD' => 'TWD - New Taiwan Dollars','NZD' => 'NZD - New Zealand Dollars','NOK' => 'NOK - Norwegian Kroner','PHP' => 'PHP - Philippine Pesos','PLN' => 'PLN - Polish Zlotys','SGD' => 'SGD - Singapore Dollars','SEK' => 'SEK - Swedish Kronor','CHF' => 'CHF - Swiss Francs','THB' => 'THB - Thai Baht','TRY' => 'TRY - Turkish Liras', 'RUB'=>'RUB - Russian Ruble', 'RON'=>'LEI - Romania');
    	$currencies->symbols = array( 'EUR' => '€','USD' => '$','GBP' => '£','CAD' => '$','AUD' => '$','BRL' => 'R$','DKK' => 'kr','HKD' => '$','HUF' => 'Ft','JPY' => '¥','MYR' => 'RM','MXN' => '$','TWD' => '$','NZD' => '$','NOK' => 'kr','PHP' => 'Php','SGD' => '$','SEK' => 'kr','CHF' => 'CHF','TRY' => 'TL','RUB'=>'₽', 'RON' => 'Lei');
    	$currencies->true_symbols = array( 'EUR' => '€','USD' => '$','GBP' => '£','CAD' => '$','AUD' => '$','BRL' => 'R$','DKK' => 'kr','HKD' => '$','HUF' => 'Ft','JPY' => '¥','MYR' => 'RM','MXN' => '$','TWD' => '$','NZD' => '$','NOK' => 'kr','PHP' => 'Php','SGD' => '$','SEK' => 'kr','CHF' => 'CHF','TRY' => 'TL', 'RUB'=>'?', 'RON' => 'Lei');
    	return apply_filters('em_get_currencies',$currencies);
    }

    This is: ‘RON’ => ‘Lei’

    Thank you!

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Glad you’re enjoying the plugin. Have you tried the code below?

    https://pastebin.com/FNHArUdy

    Thread Starter Cristescu Bogdan

    (@cbogdan)

    Thank you ~caimin for your sugestion!

    This code satisfy my needs:

    function my_em_add_currencies($currencies){
            $currencies->names['RON'] = 'Lei - Romania';
            $currencies->symbols['RON'] = 'Lei';
            $currencies->true_symbols['RON'] = 'Lei';
            return $currencies;
    }
    add_filter('em_get_currencies','my_em_add_currencies');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add new currency for Romania (RON – Lei)’ is closed to new replies.