Cant make same day bookings

When trying to book current day the system changes the day to next day or “the booking cant be made” message apears.

I have no limitations on to book for the same day. Every other day booking works fine.

After errors and trying again the booking wont stop to error messages but somehow the system automaticaly switches the current day to next day:


same day booking not working for me too. did someone manage to fix this bug.

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

Thought this was community forum, and not some pay-to-get-serviced forum. Ofc you don’t have to help, but custom tickets are different thing.

Hi,

Yes, it is a community, but note that there are two types of users: premium and free. From our side, we cannot provide support for a longer period than you purchased when you bought the theme, as we have limited resources. If you need further assistance, I recommend that you consider renewing your premium support: Renew Support | HivePress

As for the issue, please see the solution in this topic: The booking cannot be made if someone try to book "today" date from the calendar

I fixed it for anyone interested on how:
1- go to \wp-content\plugins\hivepress-bookings\includes\components\class-booking.php
2- search for

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

3- and replace it with

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

4- Go to \wp-content\plugins\hivepress-bookings\includes\controllers\class-booking.php
5- Search for

// Set time range.
			if ( $start_time && $end_time && $end_time >= $start_time && $start_time > hivepress()->booking->get_shifted_time( $listing, time() ) ) {

6- And change it to

// Set time range.
			if ( $start_time && $end_time && $end_time >= $start_time && $start_time >= hivepress()->booking->get_shifted_time( $listing, time() ) ) {

7- Test today booking and all other bookings, this will also fix the cached selected date from previous booking to show up instead of the today booking attempt.

Instructions on how to solve the today booking problem is posted above or below my respond, check it out if you want to fix it

Instructions on how to solve the today booking problem is posted above or below my respond, check it out if you want to fix it