Hi there team HP.
We’ve enabled Time Slots as we need the days available for the listings. However we want to unset all the other attributes that comes with the Time Slots function.
We’ve compiled this code from modifying snippets:
unset( $form[‘fields’][‘booking_window’] );
//unset( $form[‘fields’][‘booking_min_time’] );
//unset( $form[‘fields’][‘booking_max_time’] );
unset( $form[‘fields’][‘booking_min_quantity’] );
unset( $form[‘fields’][‘booking_max_quantity’] );
unset( $form[‘fields’][‘booking_slot_duration’] );
unset( $form[‘fields’][‘booking_slot_interval’] );
unset( $form[‘fields’][‘booking_moderated’]);
unset( $form[‘fields’][‘booking_min_length’] );
unset( $form[‘fields’][‘booking_max_length’] );
But when submitting a list we get the error “Purchase Slot Duration” field is required.
Is it possible to use only the Days Available in some way?