Support » Plugin: Events Manager » Create custom booking from serverside

  • Resolved ykushnir

    (@ykushnir)


    Hi!
    I created custom checkbox field in booking form. If user don’t check it new booking is simply created. But if user check it I have to create another booking for another event with custom price and similar information like country, names etc…

    In a few words I have to “api” for creating new booking.
    Any idea?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • unfortunately, this isn’t possible at the moment.

    Plugin Author Marcus

    (@netweblogic)

    it is possible, but you have to custom code it.

    e.g.

    $EM_Booking = new EM_Booking();
    //add event id, ticket ids, quantities etc.
    $EM_Booking->save();

    you can see how we do that via the EM_Booking::get_post() function

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create custom booking from serverside’ is closed to new replies.