=== Moby Booking – Online Appointment Booking ===
Contributors: mobyapp
Tags: booking, appointments, appointment booking, calendar, scheduling
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Take appointments on your website: services, staff, real-time availability, deposits and email reminders. Inline form, floating button or popup.

== Description ==

Moby Booking lets your customers book appointments on your WordPress site in three steps: service, time slot and details. Set up your services, opening hours and team in Moby Booking, connect your site in one click and place the booking form anywhere with a block or a shortcode.

**Features**

* Three-step booking built for mobile: service (and professional) → day and time → details.
* Inline form, floating "Book now" button or a popup opened from any button or link.
* Services with duration, price and buffer time; staff with their own hours; group classes with seats.
* Real-time availability with minimum and maximum notice, holidays and time off.
* Confirmation, 24 h and 2 h reminders, rescheduling and cancellation emails with your branding.
* Customers change or cancel their appointment from a magic link, and add it to their calendar.
* Optional deposit or full payment online by card or Bizum (paid plans).
* Custom form fields, light, dark and brand themes with your colour.
* Interface in Spanish, Catalan, English, French, German, Italian, Portuguese and Romanian.
* Fast: one small script (about 23 KB gzipped). Accessible with keyboard and screen readers.
* Privacy-friendly: no cookies and no third-party requests on your visitors' browsers.

**How it works**

1. Go to **Settings → Moby Booking** and click **Connect with Moby**.
2. Log in or create a free account and follow the 3-step setup: your business, your services and your opening hours.
3. You are sent back to WordPress with your booking key saved.
4. Add the **Moby Booking** block, or the `[moby_booking]` shortcode, to any page. Or tick **Floating button** in the settings to show it on every page.

The free plan includes 1 professional and a monthly allowance of online bookings. Paid plans add more staff, online payments, custom fields and removal of the Moby Booking credit. See [plans and pricing](https://booking.mobyapp.eu/#precios).

== External services ==

This plugin is a client for the Moby Booking service, operated by Moby (https://www.mobyapp.eu/). An account on that service is required: your services, staff and appointments are stored there, not in WordPress.

* **Moby Booking API (harpoon.mobyapp.eu).** When a page with the booking form is viewed, the widget requests the business's public booking information (services, staff, availability). When a visitor books, the data they enter in the form (name, email, phone, comments and any custom fields) is sent to the API to create the appointment. The business is the data controller and Moby is the data processor.
* **Language files (booking.mobyapp.eu).** For languages other than Spanish, the widget loads a small translation file from the same server as the widget.
* **Moby Booking panel (booking.mobyapp.eu).** When you click "Connect with Moby" in the admin, you are taken to the panel with your site address so your booking key can be sent back to your site.
* **Online payments (optional).** If the business requires a deposit or full payment, the visitor is redirected to the payment provider chosen by the business: Stripe (https://stripe.com/privacy) or the business's own bank virtual POS (Redsys, with Bizum).
* **Booking check (admin only).** The Settings → Moby Booking page asks the Moby Booking API whether your booking page exists and can be shown on your domain. It sends the booking key and your site address.

Terms of service: https://www.mobyapp.eu/en/terminos
Privacy policy: https://www.mobyapp.eu/en/privacidad
Data processing agreement (GDPR art. 28): https://www.mobyapp.eu/en/encargo-tratamiento
Legal notice: https://www.mobyapp.eu/en/aviso-legal · Cookie policy (what the widget stores, to declare in your own cookie policy): https://www.mobyapp.eu/en/cookies
Suggested text for your site's privacy policy: Settings → Privacy → Policy guide → "Moby Booking".

== Source code ==

The front-end widget (`assets/booking.js`) is compiled and minified from TypeScript with esbuild. Its human-readable source code is included in the plugin, in `assets/src/`.

== Installation ==

1. Install the plugin from **Plugins → Add New** (search for "Moby Booking") and activate it.
2. Go to **Settings → Moby Booking** and click **Connect with Moby**.
3. Add the **Moby Booking** block or the shortcode to a page.

= Shortcode =

`[moby_booking]` shows the booking form of the connected account. Optional attributes:

* `id` – a booking key (`bk_…`) other than the connected one.
* `mode` – `inline` (default), `button` (floating button) or `popup` (a button in the content that opens the booking window).
* `label` – text of the button in `button` and `popup` modes.
* `theme` – `light`, `dark` or `brand`.
* `accent` – accent colour, for example `#2563eb`.
* `lang` – `es`, `ca`, `en`, `fr`, `de`, `it`, `pt` or `ro`. By default, the visitor's language.

Example: `[moby_booking mode="popup" label="Book now" accent="#0f766e"]`

With `mode="popup"`, any link to `#moby-booking` on the page also opens the booking window.

== Frequently Asked Questions ==

= Do I need an account? =

Yes. Moby Booking is a hosted service: your agenda, customers and reminders run on Moby's servers, so they keep working even if your site is down. The free plan does not require a credit card.

= Can I use it without WordPress? =

Yes. Every business also gets a booking page (for the Instagram bio or a QR code) and a one-line code for any website.

= Does it set cookies? =

No. The widget does not use cookies or local storage and only talks to the Moby Booking API.

= Can my customers pay a deposit? =

Yes, on paid plans. Connect Stripe or your bank's virtual POS (Redsys, with Bizum) in Moby Booking and choose a deposit or the full price per service.

= Can staff sync their calendar? =

Yes. Moby Booking gives each business and each professional a calendar subscription link (ICS) for Google Calendar, Apple Calendar or Outlook.

== Screenshots ==

1. The booking form: choose a service.
2. Choose a day and time.
3. Details and deposit payment.
4. Floating button and popup.

== Changelog ==

= 1.1.0 =
* New name: Moby Booking.
* Connect with Moby: log in or create your free account and come back with your booking key in one click.
* Floating button and popup modes, plus an option to show the button on every page.
* Status check of your booking page in the settings and a notice until the account is connected.
* Online deposits and payments, custom form fields and eight interface languages.
* Automatic updates from Plugins.
* Interface in English with Spanish translation.

= 1.0.0 =
* First version: shortcode and block.

== Upgrade Notice ==

= 1.1.0 =
Connect your account in one click, floating button and popup modes, online deposits and eight languages.
