This plugin allows you to embed the Planyo reservation form on your web site.
This way, your clients will stay on your web site throughout the whole reservation process.
You can find more information about the integration process at your Planyo account. Once logged in, go to the
if you don't mind that your clients will be redirected to planyo.com to make a reservation,
you don't need to use this plugin at all.
First download the WordPress plugin (
available here).
After downloading the plugin, unzip its contents into the
wp-content/plugins/planyo directory inside the main WordPress directory. Once in the WordPress admin panel, activate the Planyo plugin.


Now, you should choose the location for the Planyo form. Here we'll create a new page. Of course you can use any existing location as well.


After publishing the page, you'll need to check the page_id in the permalink which we'll use to determine where to display the reservation form. Here, page_id equals 7.

Now we are ready to do actual integration. This is done by including the tag
<?php include ABSPATH . 'wp-content/plugins/planyo/embed.php'; ?>
wherever we want the planyo form to appear (
make sure this directory exists -- if the planyo plugin is installed in a different location, you'll need to modify the path accordingly). Let's do this in the page template in the selected theme.


Here we'll include the tag after the page contents. The exact location is entirely up to you. Please note that we're additionally checking the ID of the page to make sure the reservation form will be embedded on a single page only. This is the same page ID that we saw earlier.

Click
Update File to save the changes.


And that's it! Here's the result of the integration. Please note that you can update the file
planyo-styles.css inside the Planyo plugin directory to adjust the look&feel of the plugin.

After inserting the planyo form on the chosen page, this form will display, depending on usage, an availability search form (with results), a reservation form, or other Planyo-related content required for the reservation process. After choosing one of the components available in the next step of the tutorial (Availability search box, Calendar preview or Lien de réservation) you should enter the URL of the page with the planyo form (e.g. http://myserver.com/my_reservations.php) in the URL of the reservation page on your site field. This way, using any of these components will keep the visitor on your website (to be more specific, on the page with the planyo form) throughout the reservation process.