[resolved] Problem with booking dates (5 posts)

  1. karineka
    Posted 1 year ago #


    First of all, thanks for the plugin!

    1) I noticed a problem with the booking dates. They are entered wrongly in the database.

    For example, if you enter April 17th for the arrival date and April 18th for the departure date, the results show the availability for April 17th only (which is good as we want to book the night of April 17th).

    But when you make the booking, 1 room is removed from both April 17th and April 18th inventory. So for now, I have to edit the bookings manually in the admin panel and remove 1 day in order to show accurate availability results. (ie. Change the booking from "17 April 2014 - 18 April 2014" to "17 April 2014 - 17 April 2014"). That's not very convenient.

    2) There's also another issue I noticed. Let's say we have 5 rooms of the same type available. Someone books 1 room of this type from Apr 17th to Apr 18th. If someone else wants to book another room from this category on the same dates or on dates containing Apr 17th, it is not possible even though there are 4 rooms left.
    You get an error when validating the booking form "In your selection there are dates when the room is not available. Please select only dates available for booking".

    I am not an expert in PHP, but from what I understood in the code, the booking can't be confirmed if there are other bookings of the same room ID, on the same dates.

    I just removed that part of the code from shortcodes.php, in order to make it work for now.

    I hope you understand what I mean. Maybe you can look into that for the next release.

    Thank you!


  2. prasunsen
    Plugin Author

    Posted 1 year ago #

    Thanks for the feedback, Karine.

    1 is fixed in 0.6.7

    I cannot reproduce 2, are you sure you are not trying to book the same room?

  3. karineka
    Posted 1 year ago #

    Hello Prasunsen,

    Thanks for the fix, that was fast!

    Yes you're right, I am trying to book the same room when experiencing 2).
    I didn't remember I had to create an entry for each single room.
    I am using the plugin to book parking and garage spaces, so I changed all the words and it confused me.

    Ok so for private rooms, it makes sense. If 1 bed is already booked, you shouldn't be able to book the room again. But then, shouldn't the private room show as unavailable, even if there are beds still available?

    However, for dorms there's an issue. Hostel owners with dorms would like to rent the beds in one dorm to different persons. At the present time, if 1 bed is already booked in a dorm, the dorm can't be booked again even if there are n beds left.

    Thanks again for your work!

  4. prasunsen
    Plugin Author

    Posted 1 year ago #

    Thanks for your feedback, I'll check these things in a day or two

  5. prasunsen
    Plugin Author

    Posted 1 year ago #

    Everything fixed in version 0.7

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Hostel
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.