WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Pending Bookings (3 posts)

  1. emeraldjava
    Member
    Posted 1 year ago #

    Hi,

    We're recently gone live with out site and have online payments setup via Realex.

    http://bhaa.ie/events/south-dublin-county-council-2013/

    It appears that all the booking are going straight to status 'Pending'. Is there a config option on the events-manager admin panel that can avoid this and allow straight through payments?

    P

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

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    you can try to hook into em_booking_save filter;

    e.g.

    function my_em_booking_save($result, $EM_Booking){
      if( $EM_Booking->booking_status == 5 ){ //status 5 = offline booking
        $EM_Booking->approve(false);
      }
      return $result;
    }
    add_filter('em_booking_save','my_em_booking_save', 10, 2);

    this may even work out the box and do exactly what you want come to think of it. Problem is you’ll get two emails (i.e. pending and approved) in one go, so I added ‘false’ in there so the email doesn’t get sent the second time, so make the pending email text your approved text.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    there is an option to require booking approvals in SEttings > Bookings > General

    however, chances are in your implementation you would want to use $EM_Booking->approve(false) to actually approve your booking, or set booking_status to 1 in your bookings table

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.