recranet/craft-recranet-booking

Synchronizes various Recranet Booking sources to Craft CMS

v5.1.0 2025-06-30 08:11 UTC

This package is auto-updated.

Last update: 2025-06-30 08:15:57 UTC


README

Synchronizes various Recranet Booking sources to Craft CMS

Features

  • Synchronizes facilities, accommodations, locality categories accommodation categories and package specification categories from Recranet Booking to Craft CMS.
  • Supports custom fields for facilities, accommodation categories, locality categories and package specification categories.
  • Generates an accommodation sitemap.xml route
  • Stores the organization ID and 'reservation' page in the Craft CMS settings for easy access.
  • Exposes accommodations in twig templates via the craft.accommodations() variable.

Requirements

This plugin requires Craft CMS 5.7.0 or later, and PHP 8.2 or later.

Installation

composer require recranet/craft-recranet-booking && php craft plugin/install _recranet-booking

Commands

You can run the following command to synchronize the different sources:

php craft _recranet-booking/facilities
php craft _recranet-booking/accommodations
php craft _recranet-booking/locality-category
php craft _recranet-booking/accommodation-category
php craft _recranet-booking/package-specification-category

You can run the following command to delete the different sources:

php craft _recranet-booking/facilities/delete-all
php craft _recranet-booking/accommodations/delete-all
php craft _recranet-booking/locality-category/delete-all
php craft _recranet-booking/accommodation-category/delete-all
php craft _recranet-booking/package-specification-category/delete-all

Variables

You can run the use the following variables in your templates to access the data:

{{ craft.recranetBooking.organizationId }}