Difference between revisions of "Developers"

From Beds24 Wiki
Jump to navigation Jump to search
Line 1: Line 1:
ou can use HTML and CSS to create custom solutions. The booking page can be embedded in a page using an iframe or opened with a link or form.
+
ou can use HTML and CSS to create custom solutions. The booking page can be embedded in a page using an iframe or opened with a link or form
  
The behavour of the booking page can be controlled with the following parameters passed in the URL or form.
+
The behavour of the booking page can be controlled with the following parameters passed in the URL or form
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 12: Line 12:
  
 
|-
 
|-
| ownerid || id number of owner.  || The page will open showing all properties and rooms for this owner.
+
| ownerid || id number of owner.  || The page will open showing all properties and rooms for this owner
  
 
|-
 
|-
| type || numeric value for the type of booking page to open || The value is stored in a session variable and will be used for the rest of the session. Value 0 clears the session variable and opens the default page type.
+
| type || numeric value for the type of booking page to open || The value is stored in a session variable and will be used for the rest of the session. Value 0 clears the session variable and opens the default page type  
 
|-
 
|-
| x || x || x
+
|numnight  || number of nights.  || Initial value for the number of nights selector
  
 
|-
 
|-
| x || x || x
+
| numadult  || number of adults.  || Initial value for the number of adults selector
  
 
|-
 
|-
| x || x || x
+
| numchild  || number of children.  || nitial value for the number of children selector
  
 
|-
 
|-
| x || x || x
+
| width || page width in px.  || Useful for embedding the booking page in an iframe of fixed size
  
 
|-
 
|-
| x || x || x
+
| numdisplayed  || number of nights with prices displayed.  || Only applies to price table pages, use this to reduce the number of nights for narrow designs
  
 
|-
 
|-
| x || x || x
+
| referer  || text  ||This text will be recorded with any bookings originating from this widget allowing tracking of booking sources
  
 
|-
 
|-
| x || x || x
+
| advancedays  || number of days  || This will set the initial date to this many days in advance of today. Only applies the first time the page is opened
  
 
|-
 
|-
| x || x || x
+
| hidename  || yes, no  || Do not show the property name heading
  
 
|-
 
|-
| x || x || x
+
| hidedesc  || yes, no  || Do not show the description
  
 
|-
 
|-
| x || x || x
+
| hidefooter  ||yes, no  || Do not show the property information at the bottom of the page
  
|-
 
| x || x || x
 
 
|-
 
| x || x || x
 
 
|-
 
| x || x || x
 
 
|-
 
| x || x || x
 
 
|-
 
| x || x || x
 
 
|-
 
| x || x || x
 
  
|-
 
| x || x || x
 
 
|}
 
|}

Revision as of 17:45, 2 February 2013

ou can use HTML and CSS to create custom solutions. The booking page can be embedded in a page using an iframe or opened with a link or form

The behavour of the booking page can be controlled with the following parameters passed in the URL or form

Parameter Value Description
https://www.beds24.com/booking.php Path to booking page At the very minimum there must also be one of propid, roomid or ownerid parameter
roomid id number of room. The page will open showing this room.
ownerid id number of owner. The page will open showing all properties and rooms for this owner
type numeric value for the type of booking page to open The value is stored in a session variable and will be used for the rest of the session. Value 0 clears the session variable and opens the default page type
numnight number of nights. Initial value for the number of nights selector
numadult number of adults. Initial value for the number of adults selector
numchild number of children. nitial value for the number of children selector
width page width in px. Useful for embedding the booking page in an iframe of fixed size
numdisplayed number of nights with prices displayed. Only applies to price table pages, use this to reduce the number of nights for narrow designs
referer text This text will be recorded with any bookings originating from this widget allowing tracking of booking sources
advancedays number of days This will set the initial date to this many days in advance of today. Only applies the first time the page is opened
hidename yes, no Do not show the property name heading
hidedesc yes, no Do not show the description
hidefooter yes, no Do not show the property information at the bottom of the page