Okay
  Public Ticket #2799900
Possibility of overlapping appointments
Closed

Comments

  • Arne started the conversation

    Hello,

    I have added the agenda module to a website for a fitness.
    The customers can only register for 1 service and this is fitness for 1 hour where a maximum of 50 people is set. The time slots are set per 30 minutes, so they can choose when their hour starts per 30 minutes.

    Now we're starting to see some problems when testing the calendar, when we set an appointment from 4:00 PM to 5:00 PM, people in the calendar can no longer book an appointment from 3:30 PM - 4:30 PM or 4:30 PM - 5:30 PM.

    I understand the logic that no overlapping appointments can be made, but is there a possibility to have overlapping appointments within the agenda so that it is possible for people to choose their own hours up to the maximum capacity?

    Thanks in advance,
    kind regards,
    Arne

  • [deleted] replied

    Hi, Arne,

    Sorry for the delayed response, we don't work on weekends.

    I'm afraid, at the moment it's not possible to have overlapping appointments in Amelia since one of the main ideas behind Amelia's logic was to avoid that.

    You can suggest that as a "feature request" here, or check if this request was already submitted and vote for it. 

    Also, maybe if you set the duration of the Service to 30 mins, so this one 1h-long time slot will turn into two separate 30-mins-long slots, it might be a temporary solution?

    Best Regards. 

  • Arne replied

    Hello,

    Is it possible to only show the starting time to the people who book, so not from 4 pm to 5 pm? Because if I change the time slots to 30 min, customers will have to book from 4 pm - 4.30 pm & 4.30 pm - 5 pm. It is also only that one 1 hour service that they can book, so it must also be seen as 1 hour by the customers.

    Thanks in advance,
    kind regards,
    Arne

  • [deleted] replied

    Hi, Arne,

    Sorry for the delayed response.

    You can hide the ending with custom JS:

    <script>
    setInterval(function () {
     var elements = document.getElementsByClassName('el-radio-button__orig-radio');
     var appointment_times = document.getElementsByClassName('el-radio-button__inner');
     for (var i = 0; i < elements.length; i++) {
    appointment_times[i].innerHTML = appointment_times[i].innerHTML.split(' - ')[0];
     }
    }, 1000)
    </script>

    Please add this JS to the booking page.

    If you need help with adding custom JS to the page, please take a look at this article.

    However, then the starting time of the second slot (4.30 pm) will be still shown, and it can't be hidden.

    Best Regards.