Changes

Jump to navigation Jump to search

Category:Widgets

1,364 bytes added, 13:25, 20 October 2022
no edit summary
[[Category:Settings]]
[[Category:Booking_Page]]
[[Category:Booking_Engine]]
[[Category:Troubleshooting]]
<div class="heading">Booking Widgets</div>
<span style="color:#fe746c;“ >{{#fas:exclamation-triangle}} </span> The widgets require your page to have UTF-8 language encoding.
<span style== If you do "color:#fe746c;“ >{{#fas:exclamation-triangle}} </span> The availability calendar widget only processes data one year in advance. For more future dates the dates show available but are not have JQuery ==bookable.
== If the datepicker is not working or you do not have jQuery and jQueryUI installed on your web page add the following to the <head> section of your page.JQueryUI ==
<code> <The widget will attempt to self load jqueryUI, if this is not working properly or causing conflicts you can add it to your page after the jquery script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script></code>
<code><script src== If you do not have JQueryUI =="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script></code>
The widget will attempt to self load jqueryUI, if this is not working properly or causing conflicts you can add it to your page after the <code><link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery script-ui.css"></code>
<code><link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css"><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script></code>
If you want to optimize the loading sizes, it should be enough just to load the JQueryUI datepicker modules.
<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 ==
== Opening a page on your site containing the booking page in an iFrame ==
So If you want to transport dates and number of guests from the date and occupancy parameters are passed widget to the iFrame, enter your booking page in the "Redirect URL" parameterplease follow these[[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]].
== Advanced functions for developers and web designers ==
|-
| customParamentercustomParameter|| 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.
|-
| minNumNight || integer || minimum number of nights
 
|-
| noExternalFonts||true false || do not load external fonts
|-
5. Paste the amended widget code into the HTML of your web site.
=== Hide dates which are not in the month from availability calendar widget === <span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> '''Required Skills''': HTML, CSS Add the following CSS to your websites style sheet <code>.ui-datepicker{display: none;}</code> === Adjust widgets for RTL languages (Arabic, Hebrew) === You need to use CSS to adjust the alignment.  Example: To adjust the booking box dd the following CSS to your websites style sheet <code>.book-widget label {float: right !important;} .book-container .book-row .book-col-offset-5 {margin-left: 0;}</code> = Embedded Iframe or link to your booking page =*Code to embed your booking page as an Iframe into your web site can be generated under {{#fas:cog}} (SETTINGS) BOOKING PAGE > BOOKING WIDGETS > EMBEDDED IFRAMEGENERATOR
*A link to your booking page can be generated under {{#fas:cog}} (SETTINGS) BOOKING PAGE > BOOKING WIDGETS > LINKS
*An URL linking to your booking page can be generated under {{#fas:cog}} (SETTINGS) BOOKING PAGE >BOOKING WIDGETS > QUICK URL
= 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