Changes

Jump to navigation Jump to search

Category:Widgets

654 bytes added, 16:07, 3 January 2023
no edit summary
<span style="color:#fe746c;“ >{{#fas:exclamation-triangle}} </span> The widgets require your page to have UTF-8 language encoding.
== If you do not have JQuery == If you do not have jQuery and jQueryUI installed on your web page add the following to the <head> section of your page. <code> <script srcspan style="httpscolor://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"#fe746c;“ >{{#fas:exclamation-triangle}} </script></codespan>The availability calendar widget only processes data one year in advance. For more future dates the dates show available but are not bookable.
== If the datepicker is not working or you do not have JQueryUI ==
<code> loadJQueryUI: false,</code>
 
If you are required to be GDPR complaint you may need to download and self host thess libraries, if so disable self loading, download the libraries to your server and change the links accordingly.
== Wordpress ==
| customParameter|| text || adds the specified information to the URL of the booking page. Example: customParameter:'hideroom=12345', will hide the room with the ID 12345 from the booking page.
|-
| customParameter:'br1-xxxx=book || skip directly to checkout page
|-
|-
| minNumNight || integer || minimum number of nights
 
|-
| noExternalFonts||true false || do not load external fonts
|-
|}
 
'''Multiple property search only'''
*A button can be generated under {{#fas:cog}} (SETTINGS) BOOKING PAGE > BOOKING WIDGETS > BOOKING BUTTON
*Code for an enquiry form generated under {{#fas:cog}} (SETTINGS) BOOKING PAGE > BOOKING WIDGETS > ENQUIRY FORM
 
==Skip to Checkout Page==
You can bypass the booking page and redirect the widget directly to the checkout page by adding this parameter
 
<code>customParameter:'br1-xxxx=book'</code>
 
to the widget.
 
Replace xxxx with the room ID of the room you want to populate.
= Troubleshooting =
==Booking page does not open the dates and or number of guests selected in the widget==
You are defining Use these parameters in [[Embedded_Iframe#How_to_reliably_transfer_dates_and_other_data_from_a_booking_widget_on_one_page_to_a_booking_page_embedded_in_an_Frame_on_a_different_page|instructions]] if you want to pass the URL in guests selection on to the embedded Iframebooking page. Remove these parameters from the Iframe URL: <code> &numnight=2&numadult=2&advancedays=2</code>
==Problem installing widgets on Wix==
==Console Error "bookWidget is not a function"==
It seem If the page does not accept the word Jquery. Exchange thisit for a $ symbol as follows:
jQuery(document).ready(function() {

Navigation menu