WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Prevent 2 events happening atthe same time (9 posts)

  1. g60dave
    Member
    Posted 1 year ago #

    Hi there, i was just wondering if there was a way to prevent an event from being booked if there is a event already on the system for that time in that category? Im trying to avoid 2 events being booked by accident.

    Thanks

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

  2. Philip John
    Member
    Posted 1 year ago #

    Hiya,

    There isn't I'm afraid without turning off booking for that event manually.

    Cheers,
    Phil

  3. agelonwl
    Member
    Posted 1 year ago #

    have you tried Events > Bookings > General Options > Allow double bookings =No

  4. g60dave
    Member
    Posted 1 year ago #

    yes, i think that applies to a guest booking a second ticket for a event

  5. angelo
    NetWebLogic Support
    Posted 1 year ago #

    I see, so basically what you are after is to prevent the user from creating a duplicate event? so if Event A is already existing then if the user tries to create another Event A the system should not allow it, is this correct? if yes, then maybe you can try to hook into em_event_save filter and do your validation there - http://wp-events-plugin.com/tutorials/saving-custom-event-information/

  6. g60dave
    Member
    Posted 1 year ago #

    Not just the Name Event A but anything in that category which is booked for that time and date i would like to have a warning to say this event cannot be booked because the system already has a booking for that timeslot. Do you think that will be possible with the em_event_save?

  7. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    I'm wondering if you couldn't have one event with a different ticket for each timeslot - and then use Angelo's Allow double bookings=No suggestion?

    If not, can you explain a bit more about what you need to do?

  8. g60dave
    Member
    Posted 1 year ago #

    I like the idea but it wont work in this case as in a way we want to allow the admin user to add the event without having to search first to see if there is already an event at that time in that category(each category is a room in my case).

    So once they try then to save the event ideally i would like it to say cant do as another event already occupies this time slot in that category on that day.

    Hope that helps

  9. angelo
    NetWebLogic Support
    Posted 1 year ago #

    yes, it possible by hooking into em_event_save filter and adding condition but unfortunately can't help you any longer with regards to coding since I haven't tried it yet.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.