WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] How add custom currency? (5 posts)

  1. lexikon
    Member
    Posted 1 year ago #

    How to add a custom currency? How to choose a different currency for each event? In what files to look at?

    http://wordpress.org/extend/plugins/events-manager/

  2. AbigailK1
    Member
    Posted 1 year ago #

    I'm looking to do the same thing. Have you found a solution?

  3. agelonwl
    Member
    Posted 1 year ago #

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

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

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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');
  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic