=== ClickCurac Reservations ===
Contributors: clickcurac
Tags: restaurant, reservation, booking, table booking, restaurant booking
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Commission-free table reservations for restaurants: add your ClickCurac booking form to any page with a block or a shortcode.

== Description ==

Let your customers book a table directly on your restaurant website, with no commission per guest.

ClickCurac is an online reservation service for restaurants, bistros, brasseries and cafés, designed in France. This plugin connects your WordPress site to your ClickCurac account and shows your booking form on the page of your choice.

* **Booking form on your site**: date, number of people and time, with your opening hours and the seats you open for each slot.
* **No commission**: a fixed monthly price, whatever the number of reservations.
* **Reminder the day before**: your customers receive a confirmation email, then a reminder with a link to cancel.
* **Large groups on request**: you accept or decline in one tap, the customer is notified by email.
* **Table plan** (optional): each reservation gets its table automatically.
* **Your colours**: the form follows the colours set in your ClickCurac account.
* **Works with any editor**: a native block for the block editor, and the `[clickcurac_reservation]` shortcode for Elementor, Divi, the classic editor and other page builders.

Reservations are managed in your ClickCurac account, on your phone, tablet or computer.

= En français =

Vos clients réservent leur table directement sur le site de votre restaurant, sans commission par couvert. Reliez votre site à votre espace ClickCurac en collant un code de connexion, puis ajoutez le bloc « Formulaire de réservation ClickCurac » ou le shortcode `[clickcurac_reservation]` dans votre page « Réserver ».

== External services ==

This plugin relies on ClickCurac (https://clickcurac.fr/), a third-party online reservation service for restaurants operated by ClickCurac (France). A ClickCurac account is needed: it is a paid service, with a 30-day free trial and no commitment.

* **When you connect your site** (Settings → ClickCurac → Connect), the plugin sends the connection code you pasted and the address of your site to `https://backoffice.clickcurac.fr/api/public/v1/wordpress/connect`, so that your site is allowed to show your booking form. It receives the name and address (identifier) of your restaurant.
* **On the pages where you add the booking form**, your visitors’ browsers load the form script from `https://backoffice.clickcurac.fr/widget.js`. It reads your opening hours and available slots from ClickCurac, and sends to ClickCurac the reservations made by your customers (name, email, phone, number of people, date, time, message).

* **Only if you click “Try it with a fictitious restaurant”** on the settings page, the real booking form of a fictitious demo restaurant is loaded from `https://clickcurac.fr/reserver/`.

Nothing is sent before you connect your site, and the plugin sets no cookie.

* Terms of sale: https://backoffice.clickcurac.fr/legal/cgv
* Privacy policy: https://backoffice.clickcurac.fr/legal/confidentialite

== Installation ==

1. Install and activate the plugin.
2. No ClickCurac account yet? Create one from Settings → ClickCurac (“Create my ClickCurac account”).
3. In ClickCurac, open Reservations → Settings → On your website → WordPress, and click “Create a connection code”.
4. In WordPress, paste the code in Settings → ClickCurac, then click “Connect”.
5. Edit your “Book” page and add the “ClickCurac booking form” block, or paste the `[clickcurac_reservation]` shortcode.

== Frequently Asked Questions ==

= Do I need a ClickCurac account? =

Yes. The plugin shows the booking form of your ClickCurac account. Reservations start with a 30-day free trial, without a credit card.

= Is there a commission on reservations? =

No. ClickCurac reservations have a fixed monthly price, whatever the number of reservations or guests.

= Does it work with Elementor, Divi or the classic editor? =

Yes: paste the `[clickcurac_reservation]` shortcode in a shortcode or text element.

= Where do I set my opening hours and available seats? =

In your ClickCurac account (Reservations → Settings). Changes appear on your site immediately.

= The connection code does not work =

A code is valid for one hour and can be used once. Create a new one in ClickCurac and paste it again.

= Does the plugin set cookies? =

No.

== Screenshots ==

1. The booking form on a restaurant website.
2. Connecting the site in Settings → ClickCurac.
3. The block in the block editor.
4. Reservations of the day in ClickCurac.

== Changelog ==

= 1.0.0 =
* First version: connection code, booking form block and shortcode.
