Asking if there is a fix for this bug that was reported last year?

Continuing the discussion from Bug with "End date only" note in booking calendar:

Describe the issue in as much detail as possible. Please remove the sections below if the issue is obvious enough and doesn’t require extra details.

Steps to reproduce

List the steps to reproduce the issue.

Actual result

Describe the actual result.

Expected result

Describe the expected result.

Extra details

Add a link to your site, screenshots or any other details that may help us pinpoint the issue.

Hi,

Sorry, but this bug hasn’t been fixed yet. We plan to fix it according to the RoadMap in the next updates: Bookings Roadmap – Asana

Thank you for the information.

I’m thinking of a temporary solution if you have a snippet that will make the “BOOKING OFFSET” with a value of 1 and make it hidden. So that no one will be able to book on the current day.

Do you think that would solve temporarily the problem?

thank you.

I found a snippet that will make it a require field.

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		$form['fields']['booking_offset']['required'] = true;
		$form['fields']['booking_window']['required'] = true;
		$form['fields']['booking_min_length']['required'] = true;
		$form['fields']['booking_max_length']['required'] = true;
		return $form;
	},
	1000
);

Hi,

Please check the sample solution in this topic: How can I set a default value for a listing attribute and hide it from listing creation - #7

1 Like

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