Skip to main content

What does subdomain integration allow?

Sandra Álvarez avatar
Written by Sandra Álvarez
Updated this week

Integrating Avantio's booking system into your own web not only gives you more control, but also makes it easier for your customers to book without leaving your page. This way, you enhance the user experience and increase your conversion opportunities.

What does the integration involve?

It involves developing Avantio's booking system on a subdomain that you will provide us. For example, if your domain is "yourholidays.com", you could create: booking.yourholidays.com or reservas.yourholidays.com

By accessing this subdomain, your visitors will be able to see all your accommodations, check real-time availability, and complete a booking that will sync directly with Avantio's VRMS.

Avantio search bar on your web

Additionally, you can add the search bar directly to your website. This way, the user initiates the search from your site and, in doing so, connects with Avantio's booking system, displaying all available options.

How the process is managed

The Avantio project manager will coordinate the integration and, once completed, will send you a form (script) generated by our developers.

You will need to give this script to your trusted programmer or IT specialist to insert it into your web, linking both the subdomain and the search bar in the sections you have defined.

Implementation

Avantio provides the necessary instructions for the integration, but the script insertion must be done on your external web. For this reason, our technicians cannot directly intervene in the implementation.

Frequently Asked Questions

What is the subdomain?
It is the web address that connects your external site with Avantio's booking engine.

Who inserts the script on my web?
Your web developer or technician. Avantio provides the code but cannot perform the implementation on external pages.

Can I choose which pages display the search bar?
Yes. You decide in which sections to place it, you just need to tell your programmer where to insert it.

What if the bar doesn't work after integration?
Check that the script is correctly inserted and the subdomain linked. If the issue persists, contact your Avantio project manager to verify that the data is correct.

My web is not compatible with PHP, will it work?
No. The integration requires your web to be PHP compatible.

Can I see the script before the integration is online?
You won't be able to access the final version, but we can provide you with an example of the documentation we will share. This way, you can review it with your programmer and ensure your web meets the technical compatibility requirements. See example:

Step 1: Add this link inside the '<head></head>' tag:

<link rel="stylesheet" href="https://crs.avantio.com/datosBroker/bk_ yourwebname/css/formulario-style.css"/>

Step 2: Create the tag '<div id="avantio-form" class="horizontal"></div>' where you want to place the mini search bar.

Step 3: Insert the following code in the created tag in the corresponding language:

SPANISH

--------------

<?php

function file_get_contents_curl($url) {

$ch = curl_init();

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_URL, $url);

$data = curl_exec($ch);

curl_close($ch);

return $data;

}

echo file_get_contents_curl("https://subdomain.domain/rental/formularioMiniOptimized.php?bk=bk_domainofyourweb&Idioma=ES&Fajax=1");

?>

Step 4: Before closing the '<body></body>' tag, add this code:

<?php

echo file_get_contents_curl("https://http://subdomainname.domain.com/ rental/includeJs.php?bk=bk_domainofyourweb&tipo=formulario");

?>

Step 5: After the previous code, add the following link.

Step 6: Finally, the URL for each language will be provided, which you can link to our booking system.

Example:

Did this answer your question?