Join our new community forum for support & discussion

Join Now

Home Support Extensions Bookings Manually accept new bookings

Manually accept new bookings

  • Author
    Posts
  • Jave

    Hello Ihor,

    I want every booking need to be manually accepted by the users on default. How can I do this?

    Or how can i make the “manually accept new booking” checkbox to be checked by default?

    Thanks!

    ihor developer

    Please try this one, it should hide the checkbox and check it by default:

    add_filter(
    	'hivepress/v1/forms/listing_update',
    	function( $form ) {
    		$form['fields']['booking_moderated']['display_type']  = 'hidden';
    		$form['fields']['booking_moderated']['default']  = true;
    
    		return $form;
    	}
    );

    So all new or re-saved listings will have booking requests enabled.

    Jave

    This snippet hides the checkbox but unfortunately doesn’t check it on default.. Tried different things like ['checked'] = true; but haven’t find a working solution yet

    ihor developer

    Please also try this one (in addition to the previous snippet):

    add_filter(
    	'hivepress/v1/models/listing',
    	function( $form ) {
    		$form['fields']['booking_moderated']['default']  = true;
    
    		return $form;
    	},
    	1000
    );
    aspirina

    dosent work , tried both

    ihor developer

    Please post a new topic here and someone from our staff will share a snippet https://community.hivepress.io/

    aportodas

    Hola ihor necesito hacer lo mismo.
    Busco que los usuarios acepten manualmente las reservas.
    Pero entro en el link que has facilitado y no sé dónde buscar.
    Gracias.
    Si sabes el código para hacerlo te lo agradezco

    ihor developer

    Vendors can do this by checking the Booking Requests option for their listings. If you mean pre-selecting and hiding this option for all vendors please check this topic https://community.hivepress.io/t/manualy-accept-new-bookings/327/2

Viewing 8 posts - 1 through 8 (of 8 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.