Viewing 1 replies (of 1 total)
  • Hi Charles,

    You can add the form to any page or post using the [booking-form] shortcode. There is also a widget if you’d like to add it to a sidebar.

    To add it directly into a template file in your theme or plugin, you can call do_shortcode( '[booking-form]' );.

    In order to modify the input fields, you’ll need to output your own booking form HTML code and override the verification checks for the input fields you don’t want (date/time). To accomplish this, you’ll need to be able to write a custom plugin that hooks into Restaurant Reservations. You should be familiar with WordPress’s Plugins API and hooks system.

    If you’re comfortable with that, look to the rtb_booking_form_html_pre hook to override the form output. Exploring the function that hook appears in will show you how to output error messages in the form. You’ll then need to hook into rtb_validate_booking_submission in Booking.class.php to unset the validation errors that will be declared from the missing date/time fields, and add any further validation you want on the number of guests.

Viewing 1 replies (of 1 total)

The topic ‘Embed the form into my theme’ is closed to new replies.