Answer the question
In order to leave comments, you need to log in
WooCommerce Bookings how to block 30 minutes after booking?
I really need help with the WooCommerce Bookings plugin. how to implement this functionality:
The service is booked with an interval of 30 minutes, if you select for example from 00:00 - 00:30, then the next interval should start from 01:00, also if you select from 01:00 to 03:30, then the next interval should start at 04:00.
The meaning is this, a family vacation club is booked, for a while, after the client has left, it takes 30 minutes to clean.
The plugin has such a function as a buffer, it implies this, but it works like this: it imposes 30 minutes on each interval of the initial time, and it turns out that the initial time does not start from 00:00, 00:30, 01:00, 01:30 , and from 00:00, 01:00, 02:00, etc., if you make the time interval 15 minutes and the buffer is also 15 minutes, this is the output (partial), but the problem is that the end time with an interval of 15 minutes , which is not correct, and if the client chooses, for example, from 00:00 to 02:15, then the buffer is only 15 minutes, and the next booking starts at 02:30.
And with all this, how to make sure that this buffer does not overlap with each initial time, or how you can simply block the next interval after booking, the meaning is this: the buffer is removed, there remains an interval of 30 minutes, but when booking from 00:00-00:30 , the next interval (00:30-01:00) was blocked and another client was able to block from 01:00-..., your help is really needed. because not a single plugin implements this function in this way. yes, if you choose 1 interval, then it works fine, but when there is a large amount of time, then problems arise.
Answer the question
In order to leave comments, you need to log in
Another idea came up, but if you just hide all time intervals that are multiples of 15 minutes, namely 00:15 and 00:45.
Then the logic of this fragment will work correctly: "if you make the time interval 15 minutes and the buffer is also 15 minutes, this is an output (partial), but the problem is that the end time is with an interval of 15 minutes, which is not correct, and if the client selects for example from 00:00 to 02:15, then the buffer is only 15 minutes, and the next booking starts at 02:30 "this fragment will work correctly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question