Category:Developers: Difference between revisions

Jump to navigation Jump to search
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 8: Line 8:
  This page is about the menu {{#fas:cog}} (SETTINGS) > BOOKING ENGINE  >  PROPERTY BOOKING PAGE > DEVELOPERS
  This page is about the menu {{#fas:cog}} (SETTINGS) > BOOKING ENGINE  >  PROPERTY BOOKING PAGE > DEVELOPERS


The booking page can be embedded in a page using an Iframe or opened with a link or form.  It can be fully customised in  This page is about the menu {{#fas:cog}} (SETTINGS) > BOOKING ENGINE. This  [[Customise_Booking_Page|page]] gives an overview. Additional options for developers are:
The booking page can be embedded in a page using an Iframe or opened with a link or form.  It can be fully customised.
This page is about the menu {{#fas:cog}} (SETTINGS) > BOOKING ENGINE. This  [[Customise_Booking_Page|page]] gives an overview. Additional options for developers are:


== Custom Text ==
== Custom Text ==
Line 50: Line 51:
For example: this would cause property 1234 to open in the parent window (frame busting) when it's book button is clicked on the multiple property page
For example: this would cause property 1234 to open in the parent window (frame busting) when it's book button is clicked on the multiple property page


<script>
<code><script>
$(document).ready(function(){
$(document).ready(function(){
$('#propid1234 a').attr('target', '_parent');
$('#propid1234 a').attr('target', '_parent');
});
});
</script>
</script></code>


<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Check the settings under  {{#fas:cog}} (SETTINGS) >BOOKING ENGINE  >  PROPERTY BOOKING PAGE > BEHAVIOUR before you add such a script.
<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Check the settings under  {{#fas:cog}} (SETTINGS) >BOOKING ENGINE  >  PROPERTY BOOKING PAGE > BEHAVIOUR before you add such a script.
Line 61: Line 62:
Javascript to change the titletext.
Javascript to change the titletext.


<script>document.title='your title';</script>
<code><script>document.title='your title';</script></code>


=== Change date format to American ===
=== Change date format ===
Javascript to change the date format.
Javascript to change the date format.




<script>
<code><script>
$(document).ready(function(){  
$(document).ready(function(){  


Line 73: Line 74:
$('#inputcheckout').data('date-format','MMMM DD, YYYY');
$('#inputcheckout').data('date-format','MMMM DD, YYYY');
})
})
</script>
</script></code>


<script>
<code><script>
window.onload = function() {
window.onload = function() {
$("[id^='ptdate']").text(function(i, t) {
$("[id^='ptdate']").text(function(i, t) {
Line 83: Line 84:


window.onunload = function(){};
window.onunload = function(){};
</script>
</script></code>


=== Change the first day of the week in the datepicker===
=== Change the first day of the week in the datepicker===
Line 92: Line 93:
If you want to change multiple languages you would need to include a script for each language.
If you want to change multiple languages you would need to include a script for each language.


<script>
<code><script>
moment.updateLocale("en", { week: {
moment.updateLocale("en", { week: {
dow: 1
dow: 1
}});
}});
</script>
</script></code>


== Booking Page Parameters ==
== Booking Page Parameters ==
Line 218: Line 219:


|-
|-
| lang  ||en (English), ar (Arabic),  bg (Bulgarian), ca (Catalan), hr (Croatian), cs (Czech), da (Danish), de (German),  el (Greek),  es (Spanish), et (Estonian),  fi (Finnish),  fr (French),  he (Hebrew), hu (Hungarian), id (Indonesian - Bahasa Indonesia), is (Icelandic), it (Italian), ja (Japanese), ko (Korean), lt (Lithuanian), lv (Latvian) mn (Mongolian), my (Burmese), nl (Dutch), no (Norwegian), pl (Polish), pt (Portuguese), ro (Romanian), ru (Russian),  sk (Slovak), sl (Slovenian), sr (Serbian), sv (Swedish), th (Thai), tr (Turkish), vi (Vietnamese),  zh (Chinese simplified),  zt (Chinese traditional) || Sets the default language to open the booking page. (2013 new style booking pages only)
| lang  ||en (English), ar (Arabic),  bg (Bulgarian), ca (Catalan), hr (Croatian), cs (Czech), da (Danish), de (German),  el (Greek),  es (Spanish), et (Estonian),  fi (Finnish),  fr (French),  he (Hebrew), hu (Hungarian), hy (Armenian), id (Indonesian - Bahasa Indonesia), is (Icelandic), it (Italian), ja (Japanese), ko (Korean), lt (Lithuanian), lv (Latvian) mn (Mongolian), my (Burmese), nl (Dutch), no (Norwegian), pl (Polish), pt (Portuguese), ro (Romanian), ru (Russian),  sk (Slovak), sl (Slovenian), sr (Serbian), sv (Swedish), th (Thai), tr (Turkish), vi (Vietnamese),  zh (Chinese simplified),  zt (Chinese traditional) || Sets the default language to open the booking page. (2013 new style booking pages only)


|-
|-
Line 274: Line 275:
|-
|-
| toproom || room always shown on the top of the bookingpage  || you can add mulitpel room IDs separated by a comma (resposive booking page only)  
| toproom || room always shown on the top of the bookingpage  || you can add mulitpel room IDs separated by a comma (resposive booking page only)  
|-
| voucher || voucher code  || Pre populates the discount voucher code


|-
|-
Line 310: Line 314:
To use the API you need to allow API access. Go to  This page is about the menu {{#fas:cog}} (SETTINGS) > ACCOUNT -> ACCOUNT ACCESS and allow API access. The API is available at https://api.beds24.com. The XML functions can be accessed with your Beds24 username and password. The JSON functions can be created with a API and prop key which you set yourself in the Beds24 control panel  This page is about the menu {{#fas:cog}} (SETTINGS) > ACCOUNT and  This page is about the menu {{#fas:cog}} (SETTINGS) > PROPERTIES > ACCESS
To use the API you need to allow API access. Go to  This page is about the menu {{#fas:cog}} (SETTINGS) > ACCOUNT -> ACCOUNT ACCESS and allow API access. The API is available at https://api.beds24.com. The XML functions can be accessed with your Beds24 username and password. The JSON functions can be created with a API and prop key which you set yourself in the Beds24 control panel  This page is about the menu {{#fas:cog}} (SETTINGS) > ACCOUNT and  This page is about the menu {{#fas:cog}} (SETTINGS) > PROPERTIES > ACCESS


==Skip to Checkout Page from Beds24 Plugin Widget==
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>


==Skip to Checkout Page from Beds24 Plugin Widget==
to the widget.


Check the following instructions: https://gist.github.com/koryrichardson/55a460ce298ea1879c041e90d1e1e527
Replace xxxx with the room ID of the room you want to populate.


== Create a website with the content in your Beds24 account ==
== Create a website with the content in your Beds24 account ==
Line 319: Line 327:


Go to [https://wiki.beds24.com/index.php/Rezintel_Website_Builder Website builder] for more details.
Go to [https://wiki.beds24.com/index.php/Rezintel_Website_Builder Website builder] for more details.
== Suppress Google Translate==
Add the following in the "Head" section:
<code><meta name=“google” content=“notranslate”>
<html translate=“no”></code>