Categories

Featured templates

WordPress. How to work with a booking form

Norman Fisher April 29, 2013
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial is going to show you how to work on a booking form that comes with some of the WordPress templates.

WordPress. How to work with a booking form

It includes fields for name, email, phone and message, a select list, a count select, two datepickers and a submit button. If your template comes with a booking form and you would like to change some of its options:

  1. Log into your WordPress admin panel.
  2. Go to the left-side menu Appearance -> Theme Options.
  3. Click on the Booking Form tab at the top.
  4. There you will find a list of self-explanatory options:
  • Title allows you to put a name of the form e.g. book a room:
  • Display ‘Name’ Field? with yes/no selections allows to switch the name field off and on;
  • Text for ‘Name’ Field allows you to input text for the field, e.g. Your Name
  • Display ‘Email’ Field? allows you to switch the email field on and off;
  • Text for ‘Email’ Field allows you to input text for the field, e.g. Email
  • Display ‘Phone’ Field? allows you to switch the phone field on and off;
  • Text for ‘Phone’ Field allows you to input text for the field, e.g. Phone
  • Default Text for Select Element allows you to input text for the for select element, e.g. Select room type
  • Display Count Select? allows you to switch the count select on and off;
  • Text for Count Select allows you to input text for the count select, e.g. No. of rooms
  • Number of Items in Count Select allows to enter a number of items in count select (from 1 to 10), e.g. 5
  • Date Format allows to choose date format for datepicker elements, e.g. Default: mm/dd/yy
  • Display Datepickers 1? allows to switch Datepickers-1  on and off;
  • Include Timepicker to Datepickers 1? allows to switch the timepicker in Datepickers-1  on and off;
  • Default Text for Datepicker 1 allows you to input text for datapicker-1, e.g. Check in
  • Display Datepickers 2? allows to switch Datepickers-2  on and off;
  • Include Timepicker to Datepickers 2? allows to switch the timepicker in Datepickers-2 on and off;
  • Default Text for Datepicker 2 allows you to input text for datapicker-2, e.g. Check out
  • Display ‘Message’ Field? allows you to switch the message field on and off;
  • Default Text for ‘Message’ Field allows you to input text for the message field, e.g. Additional Comments
  • Text for Submit Button allows you to input text for the submit button, e.g. submit
  • To save the changes, click “Save Options” at the bottom or “Restore Defaults” in order to re-set them.
  • Open the page with the booking form to check the options you saved.
  • To enable the booking form on your page,  make sure that Contact Form 7 and Contact Form 7 – Dynamic Text Extension plugins  that come with your template are installed and enabled under the menu Plugins  –> Installed Plugins. 
  • Go to the left-side menu Contact. If you installed the template with the sample data, you should already have the reservation forms added. If not, you need to add them by clicking “Add New”.
  • For example, Reservation Form 1 (first column) may have the following in the Form field 
  • <div class="reservation-form-user">
    <p><label>First Name:</label>[text* your_name]</p>
    <p><label>Last Name:</label>[text* your_surname]</p>
    <p><label>E-mail:</label>[email* your_email]</p>
    <p><label>Phone:</label>[text* your_phone]</p>
    <p><label>Fax:</label>[text your_fax]</p>
    <p class="area"><label>Special Requirements:</label>[textarea your_requirements]</p>
    <p class="submit">[submit "Send"]</p>
    </div>
  • And Reservation Form 2 (second column) may have add the following in the Form field:
  • <div class="reservation-form-user">
    <p><label>First Name:</label>[text* your_name]</p>
    <p><label>Last Name:</label>[text* your_surname]</p>
    <p><label>E-mail:</label>[email* your_email]</p>
    <p><label>Phone:</label>[text* your_phone]</p>
    <p><label>Fax:</label>[text your_fax]</p>
    <p class="area"><label>Special Requirements:</label>[textarea your_requirements]</p>
    <p class="submit">[submit "Send"]</p>
    </div>
  • Reservation Form 2 should have the Message body field filled in, e.g.
  • From: [your_name] 
     
    Coise: [selectedItem]
    Date From: [dateFrom]
    Date To: [dateTo]
    No. of rooms: [countSelect]
     
    First Name: [your_name]
    Last Name: [your_surname]
    E-mail: [your_email]
    Telephone: [your_phone]
    Fax: [your_fax]
    State/Province: [your_state]
     
    Special Requirements:
    ----------------------------------------------
    [your_requirements]
    
  • Put your email into the To: field under Mail of Reservation Form 2, so it looks like this:
  • Save the changes and try to send a message using the booking form on your site. If there are problems, make sure the versions of the plugins
  • Feel free to check the detailed video tutorial below:

    WordPress. How to work with a booking form

    Responsive Wordpress Templates
    This entry was posted in WordPress Tutorials and tagged booking, form, manage, WordPress, work. Bookmark the permalink.

    Submit a ticket

    If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket