Blocking calendar after payment (only)

Support forumBlocking calendar after payment (only)
LeoGui Staff asked 5 years ago
By default, during the purchase process
  1. We send the user on a page with the calendar /reservation/
  2. The user selects the right appointment and EA redirects to /cart/
  3. user checks out and pay
Now during step 1 and 2, appointment is in status "pending" which is blocking the corresponding slot in the calendar. We would like to avoid this by logging the appointments first with a "reservation" status by activating the "auto reservation" checkbox described in the manual as:
Reservation – When customer creates Appointment select date and time value it will automatically create reservation on back end. But only if option Auto reservations is marked.
However, when"auto reservation" is checked (and config saved), the user can select a timeslot but cannot fill in their data afterward and cannot "submit", preventing them to reach the cart. How to solve this?
6 Answers
Nikola Loncar Staff answered 5 years ago
Hi, can you please tell me if there are any errors inside console with auto reservation option on? How user can't fill out data? There must be some kind of error in that case :( Best regards, Nikola
LeoGui Staff answered 5 years ago
We are using the "SeedProd" pluging to enable and disable the website. When in maintenance mode > we try to book logged in the back office as admin, the page always works but every booking is in status "pending" instead of the expected "reservation" > this blocks the calendar. When in SeedProd status = disabled (the website is active), trying from an incognito window shows the problem and the console logs: a 400 error "{"err":true,"message":"Daily limit of booking request has been reached. Please contact us by email!"}" > To my knowledge user is not logged in, so is this limit applying to all "guest" users?
LeoGui Staff answered 5 years ago
We just tried to remove the daily limit (set to blank and save) > We are getting the same error: "{"err":true,"message":"Daily limit of booking request has been reached. Please contact us by email!"}"
Nikola Loncar Staff replied 5 years ago

Can you set large number there like 1000 or something similar. It is part of EA Settings > Customize page.

Best regards,
Nikola

LeoGui Staff replied 5 years ago

Yes, this is what we tried (set to 100) and it started to work again.
Note that leaving blank did not work, this is why I was asking more details in https://easy-appointments.net/support/meaning-of-the-max-number-of-appointments-field/

LeoGui Staff answered 5 years ago
Nevertheless, when the reservation goes through and with the "Auto reservation :" setting checked, the appointment is still coming as "pending" and therefore blocking the calendar. What is the magic behind having appointments in status = "reservation" until the payment is paid (and therefore the appointment confirmed)?
Nikola Loncar Staff replied 5 years ago

Reservation is there for couple of minutes in order to prevent others take that slot while current customer is filling out the form 🙂

Best regards,
Nikola

m.marengere Staff replied 4 years ago

When you say couple of minutes, how many minutes will the slot remained block until it return to available ?

LeoGui Staff answered 5 years ago
OK, so actually the opposite effect that I'm looking for: my aim is that the calendar remains free until the first customer check out (and pays). Feasible?
Nikola Loncar Staff replied 5 years ago

Just don’t set auto reservation option. Then it will be reserved once booking it is completed.

Best regards,
Nikola

LeoGui Staff answered 5 years ago
Thanks Nikola, this is exactly what I was looking for. I think the description of this option is misleading: "Make reservation at moment user select date and time!" could be more complete "Make reservation at the moment user submits date and time. By default, the reservation happens when status = X" Regards,