Re-Book a cancelled event

This topic contains 2 replies, has 2 voices, and was last updated by  Benjamin Ogg 7 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26828

    Dear Stephen

    I installed your brilliant plugin and limited the tickets to one (1) per user. If now a user cancels an event the user is not able to rebook the same event (i.e. the cancellation was accidentally made). The plugin alerts, that the event is already booked (which is not 100% true, as the ticket is actually cancelled).

    I certainly could delete the cancelled tickets in wp-admin manually but a workaround for this matter would be highly appreciated.

    Thanks for your help, Stephen!

    Cheers, Benjamin

    Benjamin Ogg
    #26834

    Hi Benjamin,

    Replace

    eo_user_has_bookings( get_current_user_id(),  $post_id, $occurrence_id )
    

    with

     eo_user_has_bookings( get_current_user_id(),  $post_id, $occurrence_id, eo_get_reserved_booking_statuses() )
    

    Then, users will be able to place a booking so long as they do not have an existing booking that is reserving a space.

    I’ve updated the tutorial.

    Stephen Harris
    #26842

    You are awesome, Stephen!
    Thanks for you quick help. It works perfectly!
    Cheers, Benjamin

    Benjamin Ogg
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.