Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m looking to do the same thing. Have you found a solution?

    sorry, different currency per event is not possible at the moment;

    https://wp-events-plugin.com/documentation/

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    here’s a snippet i made that you could use:

    function my_em_special_event_currency($currency){
    	global $EM_Event;
    	if( is_object($EM_Event) ){
    		if( $EM_Event->post_id == '2184' ){ //use some way to check if this event should have a different currency
    			return 'GBP'; //return a currency code
    		}
    	}
    	return $currency;
    }
    add_filter('pre_option_dbem_bookings_currency', 'my_em_special_event_currency');
    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    here’s a snippet i made that you could use:

    function my_em_special_event_currency($currency){
    	global $EM_Event;
    	if( is_object($EM_Event) ){
    		if( $EM_Event->post_id == '2184' ){ //use some way to check if this event should have a different currency
    			return 'GBP'; //return a currency code
    		}
    	}
    	return $currency;
    }
    add_filter('pre_option_dbem_bookings_currency', 'my_em_special_event_currency');
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How add custom currency?’ is closed to new replies.