=== coupehub ===
Contributors: coupehub
Tags: barbershop, booking, appointments, online booking, salon
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put your coupehub booking on your own website, so customers pick a treatment, a barber and a time without leaving your site.

== Description ==

[coupehub](https://coupehub.nl/en) is the booking app for barbershops. Customers book from your Instagram link or your website and get a reminder, on WhatsApp if they like. You see your whole day at a glance.

This plugin puts your shop's booking on any page or post of your WordPress site:

* **A block.** Add "coupehub booking" and paste your booking link. The editor shows the booking as your visitors will see it.
* **A shortcode** for Elementor, Divi, other page builders and the classic editor: `[coupehub shop="your-shop"]`.
* **Fits any screen.** Square on a laptop; on a phone as wide as the screen and tall enough for each step.
* **In your site's language.** On a site in Dutch, French, Spanish or German the booking is in that language, on any other site in English. The block's editor text is in Dutch, French, Spanish and German too.

The plugin adds no settings page, stores nothing and loads no scripts on your site's pages: only the booking frame itself.

= You need a coupehub account =

The booking runs on coupehub, a paid service for barbershops: €30 per location per month excl. VAT, with a free 7-day trial and no payment details needed to start. Sign up at [coupehub.nl](https://coupehub.nl/en).

== Installation ==

1. Install and activate the plugin.
2. In coupehub, copy your booking link (Settings → Online booking).
3. Edit the page where customers should book, add the "coupehub booking" block and paste the link. Or use the shortcode: `[coupehub shop="your-shop"]`.

== Frequently Asked Questions ==

= Where do I find my booking link? =

In coupehub, under Settings → Online booking. It looks like `https://coupehub.nl/boek/your-shop`.

= My booking link is on my own domain =

Then paste the code from Settings → Online booking (under "Booking on your own website") into the block instead. The block finds your shop in it.

= Can I use it with Elementor, Divi or the classic editor? =

Yes, with the shortcode: `[coupehub shop="your-shop"]`. `shop` takes the last part of your booking link, or the whole link.

= Does the plugin add a link to coupehub? =

Only if you turn it on: the block's "Show a link to coupehub under the booking", or `credit="yes"` in the shortcode.

= Is this an official coupehub plugin? =

Yes, it's made by coupehub.

== External services ==

This plugin shows your booking from coupehub (https://coupehub.nl), the booking service it is made for. Without it, there is nothing to show.

* **What is loaded, and when:** when a visitor opens a page with the block or the shortcode, their browser loads your shop's booking page from coupehub.nl in a frame (`https://coupehub.nl/boek/your-shop/embed`). As with any embedded page, coupehub receives their IP address and browser details. The plugin itself sends nothing from your server.
* **When a visitor books:** the treatment, barber and time they choose and the details they enter (such as their name and mobile number) go to coupehub, which handles the appointment for your shop. To keep out bots, the booking page uses Cloudflare Turnstile.
* coupehub's terms: https://coupehub.nl/en/terms
* coupehub's privacy policy: https://coupehub.nl/en/privacy

== Screenshots ==

1. The booking on a shop's website.
2. The block in the editor: paste your booking link.

== Changelog ==

= 1.2.0 =
* German: on a site in German the booking, its frame's title and the link to coupehub are in German, and the block's editor text is translated.
* The block and the shortcode also take booking links with /de/ in them.

= 1.1.0 =
* French and Spanish: on a site in French or Spanish the booking, its frame's title and the link to coupehub are in that language, and the block's editor text is translated.
* The block and the shortcode also take booking links with /fr/ or /es/ in them.

= 1.0.0 =
* First release: the coupehub booking block and the [coupehub] shortcode.
