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.

Po dodaniu formularza planyo na wybranej stronie, będzie on wyświetlał, w zależności od zastosowania, pole szukania (z wynikami), formularz rezerwacji, lub inna związana z Planyo treść wymagana do procesu rezerwacji. Po wybraniu jednego z dostępnych komponentów, w dalszej części tutorialu (Pole szukania dostępności, Podgląd kalendarza lub Link rezerwacyjny) podaj URL strony z formularzem planyo(np. http://myserver.com/my_reservations.php) w polu URL do strony rezerwacji na twojej stronie . W ten sposób, przez użycie jakiegokolwiek komponentu, odwiedzający pozostaną na twojej stronie (a dokładniej na stronie z formularzem planyo) przez cały proces rezerwacji.