# The booking cannot be made if someone try to book "today" date from the calendar

**URL:** <https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797>\
**Category:** HivePress\
**Tags:** bookings\
**Created:** [May 9, 2025, 12:05pm UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797 "2025-05-09T12:05:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sugarbyt](https://community.hivepress.io/user_avatar/community.hivepress.io/sugarbyt/32/12926_2.png) [@Sugarbyt](https://community.hivepress.io/u/Sugarbyt)\
**Post date:** [May 9, 2025, 12:05pm UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/1 "2025-05-09T12:05:26Z")

</div>

Hi, for the hivepress bookings when user select the date of today (the current date of making the booking) he gets The booking cannot be made message, is there a way around this to allow the today date for booking? as its available to be selected on the calendar, if the logic to not allow user to book the today date then it would be better to disable it on the calendar. - this causing a serious bug, as if the user tried to previously book available dates, and then tried to book another listing for the today date the next page will proceed booking on the previous attempt of the available booking date. ( possibly a cache issue )

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [May 9, 2025, 12:08pm UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/2 "2025-05-09T12:08:59Z")

</div>

Hey,

I’m not HivePress staff, and I don’t currently use the Bookings extension. But, I think I’ve read elsewhere that you/end-users need to click the date twice to set it as the start and end date. Apologies if I’ve got this wrong. I hope this is useful! 🙂

---

<div class="post-metadata">

**Author:** ![unitehearts.in](https://community.hivepress.io/user_avatar/community.hivepress.io/unitehearts.in/32/9078_2.png) [@unitehearts.in](https://community.hivepress.io/u/unitehearts.in)\
**Post date:** [May 12, 2025, 8:08am UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/5 "2025-05-12T08:08:45Z")

</div>

this method is not working.

---

<div class="post-metadata">

**Author:** ![unitehearts.in](https://community.hivepress.io/user_avatar/community.hivepress.io/unitehearts.in/32/9078_2.png) [@unitehearts.in](https://community.hivepress.io/u/unitehearts.in)\
**Post date:** [May 12, 2025, 8:10am UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/6 "2025-05-12T08:10:05Z")

</div>

same issue.  
if i try to book for the same day, last minute booking, it does not work.  
it would be good to allow this and also to have function to give Special Discount for Last Minute Booking  
@ihor Please see if this is possible. Thank you.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [May 13, 2025, 6:23am UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/10 "2025-05-13T06:23:52Z")

</div>

Hi,

Your request is related to a premium product. Please add the license key to the account settings to access forums for your purchased products and get the Premium Support badge on your profile. If the support for your purchase has expired, please consider renewing it for assistance [Renew Support | HivePress](https://hivepress.io/renew-support/)

---

<div class="post-metadata">

**Author:** ![unitehearts.in](https://community.hivepress.io/user_avatar/community.hivepress.io/unitehearts.in/32/9078_2.png) [@unitehearts.in](https://community.hivepress.io/u/unitehearts.in)\
**Post date:** [May 13, 2025, 7:01am UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/11 "2025-05-13T07:01:48Z")

</div>

does someone in the community have a solution, can lend a helping hand ?  
Because my Premium Support badge has expired.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [May 14, 2025, 2:22pm UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/13 "2025-05-14T14:22:54Z")

</div>

Hi,

1. Please navigate to WP Dashboard \> WooCommerce \> Status \> Tools \> and click Create pages opposite Create default WooCommerce pages.
2. ​Please edit this listing (either on the front-end or back-end) and re-save it, setting the Price. This should generate a hidden product for a listing (or package\request), and the checkout redirect should be okay.
3. Please refresh permalinks; you can check this doc: [How to refresh WordPress permalinks - HivePress Help Center](https://help.hivepress.io/article/165-how-to-refresh-wordpress-permalinks)
4. Also, please make sure you set up payments correctly; you can check this doc [How to start accepting payments - HivePress Help Center](https://help.hivepress.io/article/146-how-to-set-up-payments)
5. If this issue exists, please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, ensure that caching is disabled for logged-in users.

Also, you may have restrictions on selling categories, so some bookings didn’t work: [How to restrict selling to specific listing categories - HivePress Help Center](https://help.hivepress.io/article/168-how-to-restrict-selling-to-specific-listing-categories)  
If you need to limit the booking feature to only certain categories, we recommend using this feature: [How to restrict booking to specific listing categories - HivePress Help Center](https://help.hivepress.io/article/169-how-to-restrict-booking-to-specific-categories)

I hope it helps

---

<div class="post-metadata">

**Author:** ![Sugarbyt](https://community.hivepress.io/user_avatar/community.hivepress.io/sugarbyt/32/12926_2.png) [@Sugarbyt](https://community.hivepress.io/u/Sugarbyt)\
**Post date:** [May 19, 2025, 1:30pm UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/14 "2025-05-19T13:30:50Z")

</div>

i fixed it for any one interested:  
1- go to the /wp-content/plugins/hivepress-bookings/includes/components/class-booking.php  
2- find

```auto
public function get_shifted_time( $listing, $time, $old_timezone = 'UTC' ) {
		// Check settings.
		if ( ! $this->is_time_enabled( $listing ) ) {
			return $time;
		}

```

and change it to

```auto
public function get_shifted_time( $listing, $time, $old_timezone = 'UTC' ) {
		// Check settings.
		if ( ! $this->is_time_enabled( $listing ) ) {
			return $time >= time();
		}

```

save and close.

3- go to /wp-content/plugins/hivepress-bookings/includes/controllers/class-booking.php  
4- find

```auto
if ( $start_time && $end_time && $end_time >= $start_time && $start_time > hivepress()->booking->get_shifted_time( $listing, time() ) ) {

```

and change it to

```auto
if ( $start_time && $end_time && $end_time >= $start_time && $start_time >= hivepress()->booking->get_shifted_time( $listing, time() ) ) {

```

save and test your booking for current day and others

---

<div class="post-metadata">

**Author:** ![unitehearts.in](https://community.hivepress.io/user_avatar/community.hivepress.io/unitehearts.in/32/9078_2.png) [@unitehearts.in](https://community.hivepress.io/u/unitehearts.in)\
**Post date:** [May 26, 2025, 11:46am UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/15 "2025-05-26T11:46:09Z")

</div>

thanks @Sugarbyt  
you did a great job and made it possible.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [June 25, 2025, 11:46am UTC](https://community.hivepress.io/t/the-booking-cannot-be-made-if-someone-try-to-book-today-date-from-the-calendar/15797/16 "2025-06-25T11:46:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
