Recras WordPress plugin

Description

With this plugin, you can easily integrate data from your Recras instance, such as packages and contact forms, into your own website.

To get started, go to the Recras → Settings page and enter your Recras name. For example, if you log in to Recras at https://mysite.recras.nl/ then your Recras name is mysite. That’s all there is to it! You can now use widgets to retrieve data. All data is retrieved via a secured connection (HTTPS) to ensure data integrity. Other than the request parameters, no data is sent to the Recras servers.

This plugin consists of the following “widgets”. To use them, you first need to set your Recras name (see paragraph above).
* Availability calendar
* Contact forms
* Online booking
* Packages
* Products
* Voucher sales
* Voucher info

Widgets can be added to your site in three ways. Using Gutenberg blocks (recommended, since WordPress 5.0 or using the Gutenberg plugin), using the buttons in the “classic editor”, or by entering the shortcode manually (discouraged).

Date/Time picker

By default, date and time pickers in contact forms use whatever the browser has available. Currently (May 2020) Internet Explorer (all versions) and Safari (desktop) do not have native date/time pickers and only see a text field. We have included a modern looking date picker that you can enable on the Recras → Settings page. For time inputs, a proper fallback is included.

Note: this setting only applies to standalone contact forms, not to contact forms used during “new style” online booking.

Styling

No custom styling is applied by default, so it will integrate with your site easily. If you want to apply custom styling, see css/style.css for all available classes. Be sure to include these styles in your own theme, this stylesheet is not loaded by the plugin!
For styling the date picker, we refer you to the Pikaday repository. Be sure to make any changes in your own theme or using WordPress’ own Customizer.

Cache

All data from your Recras is cached for up to 24 hours. If you make important changes, such as increasing the price of a product, you can clear the cache to reflect those changes on your site immediately.

Google Analytics integration

You can enable basic Google Analytics integration by checking “Enable Google Analytics integration?” on the Recras Settings page. This will only work if there is a global ga JavaScript object. This should almost always be the case, but if you find out it doesn’t work, please contact us!

Support

We would appreciate it if you use our GitHub page for bug reports, pull requests and general questions. If you do not have a GitHub account, you can use the Support forum on wordpress.org.

We only support the plugin on the latest version of WordPress (which you should always use anyway!) and only on actively supported PHP branches.

Credits

  • Icons from Dashicons by WordPress, released under the GPLv2 licence.
  • Date picker is Pikaday, released under the BSD/MIT licence.
  • Country list is by umpirsky, released under the MIT licence.

Screenshots

  • Example of a programme with the Twenty Fifteen theme
  • Example of package information, generated from Recras data
  • The Recras blocks in Gutenberg

Blocks

This plugin provides 8 blocks.

recras/voucher-sales
Voucher sales
recras/contactform
Contact form
recras/availability
Availability calendar
recras/voucher-info
Voucher info
recras/package
Package
recras/product
Product
recras/voucher
Voucher
recras/onlinebooking
Online booking

Installation

Easy installation (preferred)

  1. Install the plugin from the Plugins > Add New page in your WordPress installation.

Self install

  1. Download the zip file containing the plugin and extract it somewhere to your hard drive
  2. Upload the recras-wordpress-plugin folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Using Composer

  1. Type composer require recras/recras-wordpress-plugin in your terminal
  2. The plugin will automatically be installed in the /wp-content/plugins/ directory by using Composer Installers
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Do you support Gutenberg?

Yes, since version 2.2.0! Please make sure you use the latest version of the plugin and please report any bugs you encounter.

Do you support Visual Composer, Brizy, etc. ?

We do not support page builders and have no plans to do so.

Does the plugin support network installations?

Yes it does. You can set different Recras names (all settings, for that matter) for each site.

Can the plugin be installed as “must use plugin” ?

No. “Must use” plugins don’t appear in the update notifications nor show their update status on the plugins page (direct quote from the WordPress documentation) which is reason enough for us not to support this.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Recras WordPress plugin” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

4.0.1

  • A message has been added to online booking when the selected date no longer has available time slots. This can occur when the availability cache is enabled.

4.0.0

  • Allow clearing of non-required radio buttons. Since this adds a button to the list which may require styling, we consider this a breaking change.
  • Required checkboxes now notify you before sending the form
  • Small styling fixes for WP 5.5

3.6.2

  • Fix German “Voucher applied” translation during online booking

3.6.1

  • Auto-scrolling to online booking form didn’t work properly in all cases – disabled for now
  • Fix “window.ga.getAll is not a function” error in Firefox when Google Analytics integration is enabled

3.6.0

  • Handle extra customer fields in contact forms
  • Contact forms weren’t handling countries – fixed
  • Clearing “package” setting in a contact form sometimes gave an error – fixed

3.5.1

  • Update integration library: fix checking discount codes containing “special” characters, such as #
  • Add shortcode documentation page

3.5.0

  • Allow pre-filling of date and time of online booking
  • Update integration library:
    • better calendar alignment on small screens
    • fix attachments not being visible initially when pre-filling amounts
  • Fix a Dutch typo

3.4.5

  • Update integration library: prevent users submitting a form twice

3.4.4

  • “Thank you-pages” only showed 10 pages/posts. This has been increased to 100 of each.
  • “Thank you-pages” are now shown alphabetically
  • Fix potential conflict with React

3.4.3

  • Small styling adjustments for “Basic theme” and “Recras Blue” themes

3.4.2

  • Fix contact form placeholders generating invalid HTML
  • Email/Telephone fields in contact forms didn’t get proper field type – fixed
  • Improve accessibility and styling of required field labels

3.4.1

  • Updated German translations, courtesy of Wiljon Bolten
  • Update integration library: use minimum quantity of a line, if it is set

3.4.0

  • Contact forms: prevent entering a booking date in the past
  • Update integration library: include amount in ‘RedirectToPayment’ events sent to Google Analytics

Older versions

See the full changelog for older versions.