Adding a search forms for Aviasales and Hotellook with plugin
After adding the search form, uncheck the Short code and Iframe code boxes and copy the search form code.
Then return to the Travelpayouts plugin and go to Search Forms.
Click Add a new search form. You will be taken to a new page for search form shortcode generation.
Enter the shortcode title and insert the previously copied search form code into the Generated widget code field.
Attention! You can specify the city of departure and the city of arrival in any of three ways:
- When adding a shortcode to the website page.
- When adding a shortcode in the Search Forms section of the Travelpayouts plugin.
- When adding a search form in your dashboard.
The above list is sorted in order of priority, i.e., the city of departure and the city of arrival specified when adding a shortcode to the website page will have a higher priority than the other two options
To save the search form, click Add.
The Shortcode column displays the shortcode for this search form, which can be placed in an article or blog post.
In addition, you can place a search form when editing a page via the editor menu. To do this, click on the Travelpayouts icon in the editor menu:
Click Widgets and select the Aviasales or Hotellook program.
Click Settings on the search form widget. In the window that opens, you can choose which search form to place on the page, as well as specify the Sub ID and the city of origin / destination.
Was this article helpful?
Have more questions? Submit a request