Search form on main website

RezOn Universal is hosted on powerful server platforms. It is really easy to integrate it into any website by means of an iframe or HTML form.

When using this type of integration HTML + JS code is embedded into your website. After end-user fills in the search form, a new tab opens with search results. Further steps for booking creation are carried out on RezOn powered website.

To launch this search form on your website takes just 3 steps:

  1. Copy HTML code into your website

  2. Connect the styles and scripts.

  3. Initiate JS form

Depending on the type of content you are going to sell via RezOn, different markup should be pasted into the relevant container on your website:

Example of HTML code container:

<div id="rezon-forms">
    <div class="rez-forms container">
        <!-- File content with *.html markup-->
    </div>
</div>

On the page where the form is located, the following include styles and scripts should be connected:

Please note that if you already have some library connected on your page, for example jQuery, then you do not need to connect it again.

In your own script file (or via the page directly) add the form initialization script:

For flight ticket search form, it is possible to have pre-set values in the form fields:

An example of the full page code with all styles and scripts connected can be viewed here.

2. iframe

You can view video tutorial for iframe integration into websites based on Wordpress and Joomla.

On the website page a script is integrated, which generates an iframe for the search form. Once the search form has been filled in the search results display in a new tab. Further steps for booking creation are carried out on RezOn powered website.

iframe URL consists of:

  • subdomain, where RezOn project is located

  • language, amongst connected for specific RezOn project

  • type:

    • avia- for flight tickets,

    • railway- for rail tickets,

    • aviaoffers - to search for special offers

    • buses - for bus ticket search

iframe examples:

  • https://YOUR_DOMAIN_FOR_REZON.COM/ru/IFrame?t=avia — flight ticket search form

  • https://YOUR_DOMAIN_FOR_REZON.COM/ru/IFrame?t=railway — rail ticket search form

  • https://YOUR_DOMAIN_FOR_REZON.COM/ru/IFrame?t=buses — bus ticket search form

For flight ticket search form, it is possible to have pre-set values in the form fields:

Field name

Description

tab

[oneway/roundtrip/route] - default search type

from_iata

Origin IATA code

to_iata

Destination IATA code

book_from_date

Departure date in DD.MM.YYYY format

book_to_date

Return date in DD.MM.YYYY format

target

[_blank/_parent/_self] - display search results in a new tab/current tab/in iframe

https://YOUR_DOMAIN_FOR_REZON.COM/ua/IFrame?t=avia&tab=oneway&from_iata=iev&to_iata=mow&book_from_date=09.03.2018

Please place this iframe search form code in a visible place on your website:

Last updated

Was this helpful?