WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Booking Notification Email does not show the date/time the customer has boo (4 posts)

  1. blake0591
    Member
    Posted 2 years ago #

    I am using the latest Events Manager and WordPress and when a customer books using the calendar and has paid, I receive a booking notification email but the email does not tell me what date the customer has booked and then i have to email them and ask them what date they have booked. Not very professional.

    How can i edit what email address the notifications go to and what information is displayed in the email?

    Cheers

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

  2. agelonwl
    Member
    Posted 2 years ago #

    You can use change email templates at Settings > Emails > Booking Email Template then create a custom placeholder to be use in your email template

    e.g.

    Paste this code to you theme functions.php so that it will not override during EM update.

    function my_em_bookeddate_placeholders($replace, $EM_Event, $result){
    	global $wp_query, $wp_rewrite,$EM_Event;;
    	switch( $result ){
    		case '#_BOOKINGDATE':
    			foreach( $EM_Event->get_bookings()->bookings as $EM_Booking ) {
    				$replace = date('Y-m-d H:i', $EM_Booking->timestamp);
    			}
    			break;
    	}
    	return $replace;
    }
    add_filter('em_event_output_placeholder','my_em_bookeddate_placeholders',1,3);
  3. blake0591
    Member
    Posted 2 years ago #

    I put this is in the functions file and then i couldn't view the website at all.
    I had to download the functions.php and remove the placeholder you provided and re-upload it to get the site working again.

    How do i use your code in the Events Manager settings area?

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    once you paste that in your functions.php file, you need to use the _BOOKINGDATE placeholder in your email formats in the settings page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic