Per hour booking for multiple days with Availability Calander

Hello, dear community members
Is it possible to make the availability calendar work for per hour bookings spanning multiple days? e.g.

To book a service from 13:00 Wednesday to 10:00 Friday

Thank you.

Hi @kaleem,

My name is Martin, and I’m from the IT House.
We are working with Sharetribe for many years.

Well, it is possible but only after customizations, though it is easier to handle such booking with night availability, not hourly.

Question: what kind of service with hourly pricing you would book for 45 hours? The answer could be some kind of renting service, but from our experience, they also have basically price per day for such cases.

Best,
Martin
sharetribe[@]ithouse.io

Hi @ITHOUSE.IO,

Thank you for your time, Yes it’s a Car parking space booking marketplace,
It’s such a common booking requirement but not sure why Sharetribe didn’t add it. I believe this feature is available in Sharetribe Flex,

Do I have to modify the hourly booking code or the nightly booking code?

Thanks.

Hi @kaleem,

For such request one would need to modify some code related to hourly booking:

  • booking form JS on listing page - change datepicker mode from single date to date interval, so start_time and end_time could point to different dates.
  • adjust method ManageAvailabilityPerHour.working_hours_covers_booking? to check availability across several days.

Hope this helps.

Best,
Martin
sharetribe[@]ithouse.io

Thank you so much, I did exactly that and it seems to be working great so far,
Do I have to update anything else to make sure only one booking can exist in one slot.
Thanks again.

Hi @kaleem,

Happy to help.

What is “slot” in this case? Is it a time slot or parking slot?
If it is time slot, then there shouldn’t be an issue with overbooking as, by default, it is only possible to make one booking in a specific time slot.

Also, how do you list parking spaces? Does each space have its listing?

I hope I was able to replay to your question.

Best,
Martin

By slot I meant Booking Slot, I thought with hourly booking it check for overlapping hours only and not dates, I just found that it also takes into account the dates, thank you for the clarification, everything is good now.

@kaleem pleasure to be useful.

Best of luck sir! :v: