=== Chili Reservation – Table reservations for restaurants, bars and clubs ===
Contributors: chilicooperation
Tags: reservations, restaurant, booking, tables, shortcode
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Table reservations for restaurants, bars and clubs: tables, opening hours, booking form, confirmation emails and day view. No third-party services.

== Description ==

With **Chili Reservation** you accept table reservations directly through your website. Guests choose date, time and party size. The plugin checks whether a suitable table is free and reserves it. The admin interface and the booking form are currently in German.

**Features (all free, no limits)**

* Create areas and tables (name, seats, party size from–to)
* Opening hours per weekday, including past midnight, closed days and blocked dates
* Time slots with grid, length of stay and buffer
* Availability check without double bookings, even with simultaneous requests
* Optional maximum number of guests per time slot
* Booking form via shortcode `[chili_reservierung]` with consent checkbox and link to your privacy policy page
* Email to guest and to the operator
* Status: requested, confirmed, cancelled, arrived, no-show
* Admin list with filters, day view with print view
* Create and edit reservations in the admin area
* Adjustable retention period for guest data
* Spam protection without third-party services (hidden field, time check, rate limit)
* Templates as outlines: cancellation terms, house rules, privacy notice

**Privacy**

* The plugin sets no cookies and sends no data to external servers.
* All data is stored in your website's database.
* IP addresses are not stored in plain text. For the rate limit, an encrypted value is cached for one hour at most.

**Optional Pro add-on (separate, for businesses only)**

A separate add-on offers rules per area, lounges with a minimum spend, group requests, a waiting list, discount codes, vouchers, reminder emails, a cancellation link for guests, a check-in view, export and statistics. It is obtained separately from chili-cooperation.com and sold to businesses only. This plugin does not lock anything, and all features described here stay free permanently. More information: https://chili-cooperation.com/wp-apps/#reservation

**Important notes**

This plugin is a technical tool and not legal, tax or data protection advice. The site operator is responsible for the form, the consent, the privacy notices, retention periods and the handling of guest data. The templates are outlines with placeholders (templates, have them reviewed before publishing) and not finished legal texts. Use is at your own risk, and the plugin is provided without warranty.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or search for it under "Plugins > Add New".
2. Activate the plugin.
3. In the "Chili Reservation" menu, create an area and the tables under "Tische und Bereiche".
4. Check the times and time slots under "Öffnungszeiten".
5. Insert the shortcode `[chili_reservierung]` into a page.

== Frequently Asked Questions ==

= Can a table be booked twice? =
No. Each reservation occupies its table in the database. The database allows each slot only once, even if two requests arrive at the same moment.

= Are tables combined for large groups? =
No. A reservation occupies exactly one table. For large parties, create a suitable long table as its own table.

= Does the form work without JavaScript? =
Yes. With JavaScript, the form reloads the free times when the date changes. Without JavaScript, the server checks the entries on submission.

= How does the plugin send emails? =
Through the email function of WordPress. For reliable delivery, sending via SMTP is recommended.

= What happens to guest data? =
You set a retention period in days. After that, the plugin removes the guest data or deletes the reservation entirely.

= Does the plugin set cookies or connect to external servers? =
No.

== Changelog ==

= 0.1.0 =
* Initial release.

== Screenshots ==

1. The reservation form for guests: date, number of people, time and contact details
2. List of all reservations with status and actions
3. Day view with reservation counts for the service team
4. Areas and tables with the forms for adding new ones
5. Opening hours per weekday and blocked dates
