Search...
Generic filters
Exact matches only
Search in title
Search in content
Search in excerpt
Filter by Custom Post Type

Website Integration: Create a search and current status widget

Modified December 16, 2020 | Created December 8, 2016 | Jeff Valair

Filed under Website Integration

How to create a custom search and current status widget on your website.

Search Widget

Adding the following code will allow your company to fully customized (style and function) the booking search fields.

» Create a login widget

Current Status

The following code is the minimum requirement for the current status.

Technical

Departure Date

Class:
blueskybooking-widget-search-departure_date
blueskybooking-widget-status-departure_date

Syntax:
Departure_Date=mm/dd/yyyy

Example:
Departure_Date=11/22/2020

Return

A flag to enable return listings for booking.

Class:
blueskybooking-widget-search-return

Syntax:
Return={0,1}

Default:
0

Example:
Return=1

Return Date

Class:
blueskybooking-widget-search-return_date

Syntax:
Return_Date=mm/dd/yyyy

Requirements:
Return=1

Example:
Return_Date=11/22/2020

Departure Location

Class:
blueskybooking-widget-search-departure_location_id
blueskybooking-widget-status-departure_location_id

Syntax:
Departure_Location_ID=n

Example:
Departure_Location_ID=123

Options:
blueskybooking-widget-search-location-unselected-allowed
blueskybooking-widget-status-location-unselected-allowed

Arrival Location

Class:
blueskybooking-widget-search-arrival_location_id
blueskybooking-widget-status-arrival_location_id

Syntax:
Arrival_Location_ID=n

Example:
Arrival_Location_ID=123

Options:
blueskybooking-widget-search-location-unselected-allowed
blueskybooking-widget-status-location-unselected-allowed

Pickup / Dropoff

Class:
blueskybooking-widget-search-departure-pickup
blueskybooking-widget-search-departure-dropoff
blueskybooking-widget-search-return-pickup
blueskybooking-widget-search-return-dropoff

Syntax:
Departure_Pickup={string}
Departure_Dropoff={string}
Return_Pickup={string}
Return_Dropoff={string}

Example:
Departure_Pickup=Windy%20Harbour
Departure_Dropoff=Premier%20Hotel
Return_Pickup=Premier%20Hotel
Return_Dropoff=

Departure Date Range

Number of +/- days to display for the departure date.

Class:
blueskybooking-widget-search-departure_date_range

Syntax:
Departure_Date_Range=n

Options:
0, 1, 2, 3

Default:
0

Example:
Departure_Date_Range=1

Return Date Range

Number of +/- days to display for the return date.

Class:
blueskybooking-widget-search-return_date_range

Syntax:
Return_Date_Range=n

Options:
0, 1, 2, 3

Default:
0

Example:
Return_Date_Range=3

Departure Time of Day

Class:
blueskybooking-widget-search-departure_time_range

Syntax:
Departure_Time_Range=x,y

Options:
0,1440 (Anytime)
0,720 (Morning)
720,1080 (Afternoon)
1080,1440 (Evening)

Default:
0,1440

Example:
Departure_Date_Time=0,720

Return Time of Day

Class:
blueskybooking-widget-search-return_date_range

Syntax:
Return_Time_Range=x,y

Options:
0,1440 (Anytime)
0,720 (Morning)
720,1080 (Afternoon)
1080,1440 (Evening)

Default:
0,1440

Example:
Return_Date_Time=0,720

Passenger Types

The passenger type defines the gender, seat, weight and fare allocation of each customer.
A parameter can be sent for each passenger type.

A list of passenger types ID numbers obtained from the API
https://api.blueskybooking.net/genders/?Web=True

» Connecting to the API (Pending)

Classes:
blueskybooking-widget-search-types
blueskybooking-widget-search-types-model
blueskybooking-widget-search-types-weight_id
blueskybooking-widget-search-types-total
blueskybooking-widget-search-types-gender
blueskybooking-widget-search-types-web_preview

blueskybooking-widget-search-types-maximum

blueskybooking-widget-search-types-warning

Syntax:
Weight_ID[{Weight_ID}]=n

Example:
Weight_ID[4]=1&Weight_ID[22]=2&Weight_ID[18]=0

Sorting

Sorting of booking results by time of day or grouped by price.

Class:
blueskybooking-widget-search-sorting

Syntax:
Sorting=n

Options:
0 (Time)
1 (Lowest price)

Default:
0

Example:
Sorting=1

Segments

Select specific segments to filter the booking results.

A list of segment ID numbers obtained from the API
https://api.blueskybooking.net/segments/

» Connecting to the API (Pending)

Class:
(No class)

Syntax:
Segment_ID=x,y,z

Example:
Segment_ID=8,2,41,22

Classes

Select a single specific class to filter the booking results.
Examples: First class, Business class, Economy

A list of class ID numbers obtained from the API
https://api.blueskybooking.net/classes/ (Pending)

» Connecting to the API (Pending)

Class:
(No class)

Syntax:
Class_ID=n

Example:
Class_ID=132

Tiers

Select a single specific tier to filter the booking results.
Examples: Premium, Regular, Saver

A list of tier ID numbers obtained from the API
https://api.blueskybooking.net/tiers/

» Connecting to the API (Pending)

Class:
(No class)

Syntax:
Tier_ID=n

Example:
Tier_ID=41

Search Button|Link

Class:
blueskybooking-widget-book

Example:
<a class=”blueskybooking-widget-book”>Search</a>

Status Button|Link

Class:
blueskybooking-widget-status

Example:
<a class=”blueskybooking-widget-status”>Status</a>

logo
Bitnami