Send guests to your own landing page after they book by setting a Booking Return URL. Beds24 adds details of the booking to the URL as parameters, so your page can show the guest personalised information.
Required skills: PHP (or another scripting language), HTML and CSS.
Set the Booking Return URL
Steps:
- Go to Settings > Booking Engine > Property Booking Page > Behaviour.
- Enter the URL of your landing page in Booking Return URL.
- Save your changes.
Expected result: after a guest books, they are redirected to your page, with the booking details added to the URL.
Read the booking parameters
Use a script on your landing page to process the parameters. This PHP test script shows the raw data. Use it as a starting point for your own design:
<?php
echo "<br>bookid=".$_GET["bookid"];
echo "<br>propid=".$_GET["propid"];
echo "<br>roomid=".$_GET["roomid"];
echo "<br>roomname=".urldecode($_GET["roomname"]);
echo "<br>propname=".urldecode($_GET["propname"]);
echo "<br>firstnight=".urldecode($_GET["firstnight"]);
echo "<br>lastnight=".urldecode($_GET["lastnight"]);
echo "<br>checkout=".urldecode($_GET["checkout"]);
echo "<br>numnight=".urldecode($_GET["numnight"]);
echo "<br>numadult=".urldecode($_GET["numadult"]);
echo "<br>numchild=".urldecode($_GET["numchild"]);
echo "<br>lang=".urldecode($_GET["lang"]);
echo "<br>price=".urldecode($_GET["price"]);
echo "<br>confirmtype=".urldecode($_GET["confirmtype"]);
echo "<br>qty=".urldecode($_GET["qty"]);
echo "<br>pricenum=".urldecode($_GET["pricenum"]);
echo "<br>referer=".urldecode($_GET["referer"]);
echo "<br>guestname=".urldecode($_GET["guestname"]);
echo "<br>guestfirstname=".urldecode($_GET["guestfirstname"]);
echo "<br>guestemail=".urldecode($_GET["guestemail"]);
echo "<br>guestphone=".urldecode($_GET["guestphone"]);
echo "<br>guestmobile=".urldecode($_GET["guestmobile"]);
echo "<br>guestaddress=".urldecode($_GET["guestaddress"]);
echo "<br>guestarrivaltime=".urldecode($_GET["guestarrivaltime"]);
echo "<br>guestcomments=".urldecode($_GET["guestcomments"]);
echo "<br>ratedesc=".urldecode($_GET["ratedesc"]);
?>