WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Save Booking (3 posts)

  1. glennbennett
    Member
    Posted 2 years ago #

    I'm trying to save a booking. I called save() on the EM_BOOKING object and it entered the data into the bookings table, but not in the tickets_bookings table which seem to mess things up a bit.

    I set the status, booking and comment then save. What am I missing?

    example

    $EM_BOOKING->booking_status = "1";
    $EM_BOOKING->booking_spaces = "1";
    $EM_BOOKING->booking_comment = "hello";
    $EM_BOOKING->save();

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

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you need to also create a EM_Ticket_Booking object to associate the booking with a ticket for x spaces of that booking.

  3. glennbennett
    Member
    Posted 2 years ago #

    Thanks that seemed to work

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic