=== Fissaposto ===
Contributors: chibri
Tags: booking, appointments, reservations, opening hours, restaurant
Requires at least: 6.4
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

Show your Fissaposto online bookings on your site: Book button, next available times, opening hours with "open now" and service prices.

== Description ==

**Fissaposto** is an online booking calendar for restaurants, hairdressers, barbers, beauty salons, practices and anyone who works by appointment, with no commission on bookings. Fissaposto and this plugin are made by the same company, ChiBri S.r.l.s. (Italy): this is the official plugin of the service.

This plugin brings Fissaposto into your WordPress site with four editor blocks (and matching shortcodes):

* **Book button** – opens your booking page.
* **Next available times** – the first free times of the next days. Customers tap a time and land directly on the confirmation step, with the time already selected.
* **Opening hours** – the weekly schedule and a live "Open now · closes at 7:30 pm" line, recalculated in the browser even when the page is served from a cache.
* **Services and prices** – your price list with duration and price, always in sync with Fissaposto.

Also included:

* **Sticky button on phones** (optional) on every page.
* **Structured data for Google**: opening hours and a schema.org `ReserveAction`. When the ChiBri SEO plugin is active, the data is added to the business it already describes, with no duplicates.
* **Fast and privacy friendly**: data is fetched by your WordPress server and cached for a few minutes. Visitors' browsers never contact Fissaposto, no cookies are set and no external scripts are loaded.
* **Follows your theme**: buttons, colors and fonts come from your theme.
* **Fault tolerant**: if Fissaposto does not respond, the site shows the last good copy.

You need a business on Fissaposto: [fissaposto.chibri.it](https://fissaposto.chibri.it/?da=wordpress-org).

= Shortcodes =

* `[fissaposto_prenota text="Book a table" style="outline"]`
* `[fissaposto_prossimi title="Free slots" service="SERVICE-ID"]`
* `[fissaposto_orari status="yes" table="yes"]`
* `[fissaposto_servizi prices="yes" duration="yes" description="no"]`

All shortcodes accept `business="business-code"` to show a business other than the one in the settings. Italian attribute names (`testo`, `stile`, `titolo`, `servizio`, `attivita`…) work too.

== External services ==

This plugin connects to **Fissaposto** (https://fissaposto.chibri.it), a service provided by ChiBri S.r.l.s., to read the **public** data of the business set in the plugin settings: name, town, opening hours, services and prices, next available times.

Requests are sent from the site's server (never from visitors' browsers), only when the cached data has expired, and include the site address in the User-Agent header. No visitor data is sent.

Links in the blocks open the business booking page on fissaposto.chibri.it, where the customer completes the booking.

* Terms of service: https://fissaposto.chibri.it/termini
* Privacy policy: https://fissaposto.chibri.it/privacy

== Installation ==

1. Install and activate the plugin.
2. Go to **Settings → Fissaposto** and paste the address of your booking page (for example `https://fissaposto.chibri.it/your-business`).
3. In the editor, search for "Fissaposto" among the blocks and add the ones you need.

== Frequently Asked Questions ==

= Do customers book on my site? =

Customers see your free times, services and opening hours on your site. Tapping a time opens your Fissaposto booking page with that time already selected, where they confirm with their name and phone number. Bookings arrive in your Fissaposto dashboard as usual.

= How often is the data refreshed? =

Hours and services every 10 minutes (configurable from 1 to 60), next available times at least every 5 minutes. You can clear the cache at any time from the settings page.

= Does it work with my theme? =

Yes. The blocks use your theme's button styles and colors. With classic themes and page builders, use the shortcodes.

= Is the plugin free? =

Yes, the plugin is free. The business needs a Fissaposto subscription.

== Screenshots ==

1. Book button, next available times and the sticky "Book now" button on a phone.
2. Next available times, opening hours with "open now" and the price list on a desktop page.
3. Settings → Fissaposto.
4. The Fissaposto blocks in the block editor.

== Changelog ==

= 1.0.0 =
* First release: Book button, Next available times, Opening hours and Services and prices blocks; shortcodes; sticky button on phones; structured data with ChiBri SEO integration; cache with fallback copy.
