Category:Developers: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 67: Line 67:
*The behavior of the booking page can be controlled with the following parameters passed in the URL or form. URL Parameters are always added in the format name=value. To separate them, the first parameter must have a ? before it and all following parameters must have an & before them. For example if you want to change the default for the numbers of night selector to 7 nights you change the link to your booking page from  
*The behavior of the booking page can be controlled with the following parameters passed in the URL or form. URL Parameters are always added in the format name=value. To separate them, the first parameter must have a ? before it and all following parameters must have an & before them. For example if you want to change the default for the numbers of night selector to 7 nights you change the link to your booking page from  


https://www.beds24.com/booking2.php?propid=2047
https://beds24.com/booking2.php?propid=2047


to
to


https://www.beds24.com/booking2.php?propid=2047&numnight=7
https://beds24.com/booking2.php?propid=2047&numnight=7




'''Example: hide header'''
'''Example: hide header'''


https://www.beds24.com/booking2.php?propid=2047
https://beds24.com/booking2.php?propid=2047


to
to


https://www.beds24.com/booking2.php?propid=2047&hideheader=yes
https://beds24.com/booking2.php?propid=2047&hideheader=yes


Example: Make a booking page for selected rooms only
Example: Make a booking page for selected rooms only
Line 86: Line 86:
Use the propid to open the page and add &hideroom=22543 to hide a room. You can hide multiple rooms by comma separating them.
Use the propid to open the page and add &hideroom=22543 to hide a room. You can hide multiple rooms by comma separating them.


https://www.beds24.com/booking2.php?propid=2048&hideroom=3589,3588
https://beds24.com/booking2.php?propid=2048&hideroom=3589,3588




'''Example: link to the booking page with dates pre populated:'''
'''Example: link to the booking page with dates pre populated:'''


https://www.beds24.com/booking2.php?propid=13437&checkin=2017-8-24&numnight=3
https://beds24.com/booking2.php?propid=13437&checkin=2017-8-24&numnight=3


exchange these values with your data:
exchange these values with your data:
Line 102: Line 102:
'''Example: Link to a booking form with dates and room pre populated:'''
'''Example: Link to a booking form with dates and room pre populated:'''


https://www.beds24.com/booking2.php?checkin=2017-8-24&numnight=3&numadult=2&numchild=0&br1-32919=Book&roomid=32919
https://beds24.com/booking2.php?checkin=2017-8-24&numnight=3&numadult=2&numchild=0&br1-32919=Book&roomid=32919


exchange these values with your data:
exchange these values with your data:
Line 122: Line 122:
Create a URL like this:
Create a URL like this:


https://www.beds24.com/booking2.php?propid=13434&checkin_hide=2016-11-24&numnight=2&numadult=1&br1-32906=Book
https://beds24.com/booking2.php?propid=13434&checkin_hide=2016-11-24&numnight=2&numadult=1&br1-32906=Book


You need to define:
You need to define:
Line 141: Line 141:
| '''Parameter''' || '''Value'''    ||'''Description'''
| '''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
| https://beds24.com/booking.php  || Path to booking page        ||At the very minimum there must also be one of propid, roomid or ownerid parameter


|-
|-