Difference between revisions of "Booking Widget opening Booking Page on Your Own Website"

From Beds24 Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  
  
# Create the Starting Widget
+
* Create the Starting Widget
 
Generate the code for the widget you want to us in SETTINGS -> BOOKING  WIDGETS. Paste it into your html and add the following code.
 
Generate the code for the widget you want to us in SETTINGS -> BOOKING  WIDGETS. Paste it into your html and add the following code.
 
'''yourURL''' is your landing page URL on your web site.
 
'''yourURL''' is your landing page URL on your web site.
  
Links
+
** Links
 
Add the following to the URL or HREF
 
Add the following to the URL or HREF
  
 
&redirect=<nowiki>http://yourURL</nowiki>
 
&redirect=<nowiki>http://yourURL</nowiki>
  
Booking Box and other HTML forms
+
** Booking Box and other HTML forms
 
Add a hidden parameter as follows between the <nowiki><form></nowiki> and <nowiki></form></nowiki> tags
 
Add a hidden parameter as follows between the <nowiki><form></nowiki> and <nowiki></form></nowiki> tags
  
 
<input type='hidden' name='redirect' value='<nowiki>http://yourURL</nowiki>'>
 
<input type='hidden' name='redirect' value='<nowiki>http://yourURL</nowiki>'>
  
# Create the landing page
+
* Create the landing page
  
Wordpress
+
** Wordpress
 
You will will need to adjust the SETTINGS -> Beds24 in your WordPress backend.
 
You will will need to adjust the SETTINGS -> Beds24 in your WordPress backend.
 
This requires plugin version 1.3 or greater.
 
This requires plugin version 1.3 or greater.
 
Set the default number of nights and adults to '''not specified''' so they can be set by the incoming redirect.
 
Set the default number of nights and adults to '''not specified''' so they can be set by the incoming redirect.
  
Your own page
+
** Your own page
 
This will work on any page hosted on the same or a different domain as the Starting Widget.
 
This will work on any page hosted on the same or a different domain as the Starting Widget.
 
Include the booking page in an iFrame on your page. Make sure you are not specifying the number of guests or nights in the iFrame SRC.
 
Include the booking page in an iFrame on your page. Make sure you are not specifying the number of guests or nights in the iFrame SRC.
Line 33: Line 33:
  
  
How it works
+
* How it works
 
The Starting Widget opens the booking page with the redirect parameter.
 
The Starting Widget opens the booking page with the redirect parameter.
 
The redirect parameter causes the booking page to store the included information such as checkin date and number of guests in a session and then immediately redirects the user back to the page specified with the redirect parameter.
 
The redirect parameter causes the booking page to store the included information such as checkin date and number of guests in a session and then immediately redirects the user back to the page specified with the redirect parameter.
 
If the booking page is included in an iFrame on the redirect page it will open with the values from the Starting Widget stored in the session.
 
If the booking page is included in an iFrame on the redirect page it will open with the values from the Starting Widget stored in the session.

Revision as of 17:11, 19 September 2013


By default a booking widget opens your secure booking page in a new window. You can add a redirect so the widget opens an embedded booking page on your own website. You can also change the widget so it stays in the same window.


  • Create the Starting Widget

Generate the code for the widget you want to us in SETTINGS -> BOOKING WIDGETS. Paste it into your html and add the following code. yourURL is your landing page URL on your web site.

    • Links

Add the following to the URL or HREF

&redirect=http://yourURL

    • Booking Box and other HTML forms

Add a hidden parameter as follows between the <form> and </form> tags

<input type='hidden' name='redirect' value='http://yourURL'>

  • Create the landing page
    • Wordpress

You will will need to adjust the SETTINGS -> Beds24 in your WordPress backend. This requires plugin version 1.3 or greater. Set the default number of nights and adults to not specified so they can be set by the incoming redirect.

    • Your own page

This will work on any page hosted on the same or a different domain as the Starting Widget. Include the booking page in an iFrame on your page. Make sure you are not specifying the number of guests or nights in the iFrame SRC. There are iFrame widgets available in the Booking Widgets menus in the control panel.


  • How it works

The Starting Widget opens the booking page with the redirect parameter. The redirect parameter causes the booking page to store the included information such as checkin date and number of guests in a session and then immediately redirects the user back to the page specified with the redirect parameter. If the booking page is included in an iFrame on the redirect page it will open with the values from the Starting Widget stored in the session.