Validation for one user making 2 bookings at same timeslot by different workers

Support forumCategory: Feature requestsValidation for one user making 2 bookings at same timeslot by different workers
wxtay asked 6 years ago
Hi, Scenario:
  1. User books an appointment at 30 Jul 2018 10am-11am for service X by worker A.
  2. User books a second appointment at 30 Jul 2018 10am-11am for service X by worker B.
Currently the above scenario works. I think the form should validate that the user has already booked an appointment at 30 Jul 2018 10am-11am and prevent him/her from booking the second appointment.   Thanks!
2 Answers
Nikola Loncar Staff answered 6 years ago
Hi, you want to have only one booking per user per time no matter who is Worker. Best regards, Nikola
wxtay replied 6 years ago

Hi Nikola,

Yes. That is correct. Is there a function for the plugin to enforce this rule of ‘only one booking per user per time no matter who is Worker’?

If not I would like to raise a feature request for this function.

Thanks!

Nikola Loncar Staff replied 6 years ago

It can be done by some custom code. There are hooks that allow that.

Best regards,
NIkola

wxtay replied 6 years ago

Hi Nikola,

May I know what file do I look for to customise the code? I am new to wordpress development and will appreciate it if you can point me to the right direction.

Thanks!

wxtay answered 6 years ago
Hi Nikola, Can I have a reply as to what custom code and hooks I can use to enforce this rule of 'only one booking per user per time no matter who is Worker’? Thanks!