Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi jkbrwn,

    This can be a little bit tricky without some code. Are you comfortable writing a little bit of PHP code?

    If so, take a look at this micro-plugin. I wrote it for a customer who wanted to remove the party field. It removes the field and removes any validation errors that arise from the missing field.

    Removing the time field might prove a bit more complicated, since it gets passed into the date for the booking.

    An alternative approach you could take would be to hook into rtb_booking_form_fields and filter the array which defines the fields. You can then pass a custom callback which would print a hidden rtb-party field with a dummy time, in the format YYYY/MM/DD.

    That way you wouldn’t need to do any special work around validation. Each booking would just get whatever time you wanted.

    The rtb_booking_form_fields filter is defined here.

    You might also be interested in the max bookings micro-plugin I wrote. It will allow you to cap the maximum number of bookings you allow per day (by editing a line in the code).

    @jkbrwn: did you fix that? I’d need to hide the time slot as well for a website I’m setting up for a friend of mine and I really can’t set it out properly.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Time Slots’ is closed to new replies.