Version 1.0.1
A plugin for the Kirby 2 CMS System to recieve and manage bookings.
It could be used for hotel room bookings or restauraunt reservations as well as any other, time-related service.
Right now there is only a pre-payment option aviable, but PayPal as well as other integrations are on their way.
If somebody does a booking they get a confirmation Email, as well as you or the assigned contact person gets an information Email, that contains a url to confirm the booking, which will result in another mail to the customer, that gets a final confirmation.
You will need a proper mailserver setup to use the plugin that depends on it to send the confirmation mails. For local installation e.g. xampp you can use this guide: http://stackoverflow.com/a/18185233
Put the bookingManager
directory to site/plugins
.
Put the bookingManager_bookingForm.php
and the sendBookingMail.php
snippet in snippets
.
Put the assets/css/
-files to assets/css
.
Put the assets/javascript/
-files to assets/javascript
.
Change the site/snippets/header.php
and site/snippets/footer.php
with our changes or replace the complete file.
Change the site/blueprints/site.php
with our changes or replace the complete file.
Put the blueprints/booking-manager.php
into your blueprints
folder.
Put the templates/booking-manager.php
into your templates
folder.
Put the content/booking-manager
Folder into your content
folder.
Use the following Snippet in any Page Template, where you want the booking Form area to be shown.
<?php snippet('bookingManager_bookingForm') ?>
Add the following fields to the blueprint of the same page.
bookingTitle:
label: Title of the Service you want to offer
type: text
bookingDescription:
label: Description of the Service you want to offer
type: textarea
products:
label: Products
type: structure
entry: >
<h1>{{ title }}</h1>
<p><b>Description:</b> {{ description }}</p>
<p><b>Price:</b> {{ price }}</p>
fields:
title:
label: Title
type: text
description:
label: Description
type: textarea
price:
label: Price
type: number
booking-start:
label: Begin of Booking Term
type: date
format: YYYY-MM-DD
booking-end:
label: End of Booking Term
type: date
format: YYYY-MM-DD
paymentMethods:
label: Payment Methods
type: checkboxes
options:
prepay: Pre-Pay
paypal: PayPal
currency:
label: Currency (€ or EUR)
type: text
placeholder: EUR
default: $
bookingMail:
label: E-Mail for Booking requests
type: email
required: true
confirmationText:
label: Order Confirmation
type: textarea
successText:
label: Order Success Confirmation
type: textarea
Be sure to fill out all of the fields and save the page before you first try to have a view on the page. If you don't you will get ugly error messages.