How to sync HBook with Campsites.co.uk?
HBook is compatible with Campsites.co.uk’s “intelligent” iCal sync, which is developed to avoid double bookings.
HBook also retrieves the reservation details URL from Campsites.co.uk and displays a direct link inside your reservation list. This means you can open the full reservation details on Campsites.co.uk in a new browser tab with just one click.
Step by step to sync with Campsites.co.uk both ways:
You will first need to get in touch with campsites.co.uk to set up iCal synchronization with HBook.
In HBook > iCal sync, click on “Get URL” and copy the URL generated by HBook for that accommodation. Repeat for each accommodation you have.
Since campsites.co.uk manage all the configuration and connections, you will email bookings@campsites.co.uk with the copied HBook URLs.
They will email you back with the Export URLs. Copy these URLs.
Back in HBook > iCal sync, click on “Sync with a new calendar”, enter a name for it (for example, “Glamping cabin A”), paste the Campsites.co.uk URL, and click Add. Repeat this process for each accommodation.
We highly recommend the following setting for the synchronization to work properly:
in HBook > iCal sync > Import settings, set “Exclude blocked dates from the import” to “Yes”.
in HBook > iCal sync > Export settings, set “Include blocked dates in the export” to “Yes”.
if you have any date that you need to block (for example, for painting work), please do so from HBook > Reservations > Block accommodation. Thanks to the iCal sync, it will automatically be blocked in Campsites.co.uk calendar.
Displaying additional Campsites.co.uk booking information in HBook
You can use the filter hb_ical_additional_non_standard_properties and HBook will display extra booking information from Campsites.co.uk in the reservation details.
Add the following code snippet to the functions.php file of your child theme:
function my_ical_additional_non_standard_properties ( $default_ical_non_standard_properties ) {
$additional_data = array(
'X-Adults',
'X-Children',
'X-Infants',
'X-Dogs',
'X-Vehicle-Registration',
'X-Total-Booking-Value',
'X-Total-Booking-Value',
'X-Deposit-Value',
'X-Balance-Due-Date',
'X-Balance-Paid-Date'.
'X-Balance-Paid-Amount'.
'X-Vehicle-Registration',
'X-Commission-Inc-VAT',
'X-Notes'
);
$updated_comment_data = array_merge( $default_ical_non_standard_properties, $additional_data );
return $updated_comment_data;
}
add_filter( 'hb_ical_additional_non_standard_properties', 'my_ical_additional_non_standard_properties' );