=== WebStyle Hotel Booking for WooCommerce ===
Contributors: cnwebstyle
Tags: hotel booking, room booking, hotel management, accommodation, bed and breakfast
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Requires Plugins: woocommerce
Stable tag: 1.5.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Manage rooms, availability, reservations and guest stays in WordPress with WooCommerce checkout for direct bookings.

== Description ==

WebStyle Hotel Booking helps small hotels, B&Bs, guest houses and hostels manage direct bookings and daily hotel operations from WordPress.

Create room types and individual rooms, manage physical capacity, show guests what is available, and accept direct reservations through WooCommerce checkout.

Staff can also add reservations received by phone, email, walk-in or other offline sources, so room availability and the booking overview stay together in one system.

The Free plugin includes:

* Room types and physical rooms
* Availability and booking search
* Direct bookings through WooCommerce
* Manual reservations
* Booking overview and calendar
* Guest and customer overview
* Arrival, departure and in-house lists
* Availability blocks for maintenance or private use

WooCommerce is required for cart, checkout, payments and orders.

WebStyle Hotel Pro is available for businesses that need more advanced hotel operations, services, add-ons and integrations.

Before accepting live bookings, test the complete booking and checkout flow with your theme and payment gateway.

== Installation ==

1. Install and activate WooCommerce.
2. Install and activate WebStyle Hotel Booking.
3. Open Hotel in WordPress admin and complete the initial setup.
4. Create your room types and physical rooms.
5. Add the booking search to your website.
6. Configure a WooCommerce payment method and complete a test booking.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

Yes. WooCommerce handles cart, checkout, payments and orders.

= Can I add bookings made outside my website? =

Yes. Staff can manually add reservations received by phone, email, walk-in or other offline sources.

This does not provide automatic synchronization with external booking platforms.

= Can I block rooms or dates? =

Yes. Rooms or periods can be marked unavailable for maintenance, private use or other operational reasons.

= How long can a Free booking be? =

A Free booking can be up to 14 nights.

= Can guests pay online? =

Yes. Guests can use the payment methods you configure in WooCommerce.

= Do I need Pro to use the booking system? =

No. Free includes the core room, availability, direct booking and daily reservation tools.

Pro extends the system with additional hotel operations, services, add-ons and integrations.

== Screenshots ==

1. Dashboard with arrivals, departures and current stays.
2. Booking overview and manual reservations.
3. Calendar with bookings and unavailable dates.
4. Printable arrival, departure and in-house guest lists.
5. Availability search and matching rooms.
6. Accommodation booking through WooCommerce checkout.

== Changelog ==

= 1.5.5 =
* Improved Hotel navigation and Settings structure.
* Improved Free and Pro administration compatibility.

= 1.5.4 =
* Ensured Free schema 1.3.2 on the first runtime request after an active-plugin update, independently of Pro, with verified tables/indexes before version advancement.
* Restored readable room-card overlays and the active-unit capacity range display.
* Preserve stable physical room-unit IDs and related booking/pending claims on ordinary room save.
* Added canonical, idempotent pending external occupancy with scoped physical-unit claims, fail-closed attention state, and transactional handoff for Hotel Pro.
* Included pending external claims in Free room availability and booking allocation; added repeat-safe database schema 1.3.2.

= 1.5.2 =
* Use WooCommerce as the single source of currency symbols, precision, separators and price position across Hotel PHP and JavaScript displays.
* Preserve each WooCommerce order's stored currency in historical customer totals instead of combining unlike currencies.

= 1.5.1 =
* Add the shared, gateway-independent payment lifecycle manager, provider registry and canonical provider states used by Free and Pro.
* Add conservative generic WooCommerce handling and the isolated Nexi Checkout adapter without provider-specific booking logic.
* Protect Hotel inventory during unresolved unpaid online cancellation and terminate only verified open unpaid provider sessions before release.
* Keep confirmed, refunded, intentional and offline/deferred cancellations on their existing lifecycle.
* Add a nonce- and capability-protected, idempotent manual payment reconciliation action to blocked bookings with cancelled or failed Woo orders.

= 1.5.0 =
* Add one dynamic product-category registry with stable IDs, editable labels, active status and WooCommerce tax-class references.
* Route all accommodation through the reserved Accommodation category and make uncategorized products use WooCommerce Standard.
* Preserve legacy category mappings, group defaults and room metadata for compatibility without using them as new runtime tax logic.

= 1.4.2 =
* Add reusable product-category tax mappings between individual overrides and existing Hotel group defaults.
* Keep WooCommerce as the source of tax classes and rates while preserving legacy inheritance and Standard semantics.

= 1.4.1 =
* Treat missing individual tax-class values as inherited group defaults while preserving an explicit WooCommerce Standard override.
* Centralize WooCommerce order-item tax-class resolution and make inherited tax sources visible in product administration.

= 1.4.0 =
* Add a configurable, presentation-only label for the existing room floor grouping while preserving its stored data and allocation behavior.
* Add dynamic WooCommerce tax-class defaults and per-room overrides for current and future WooCommerce tax classes.
* Keep WooCommerce as the source of truth for tax rates and calculations.

= 1.3.1 =
* Fixed a data migration issue affecting upgrades from earlier Hotel versions.
* Improved upgrade compatibility for existing installations.

= 1.3.0 =
* Regenerated the complete English translation template and corrected the remaining legacy Hotel navigation label.
* Standardized the plugin author as CN WebStyle across the Hotel plugin family.
* Made Hotel Free the canonical owner of room routing and the default /rooms/<room-slug>/ permalink structure.
* Refreshes rewrite rules only for a changed room URL structure, never for ordinary room creation, editing or deletion.
* Added a neutral Hotel core API for local extensions to reuse canonical room, booking and bulk availability data without internal HTTP requests.
* Added extension hooks that allow Hotel Pro to supply premium service implementations while Hotel Free remains fully functional on its own.
* Separated the Free schema version marker from legacy and Pro markers, and made the upgrade routine idempotent without downgrading existing versions.
* Preserved existing booking IDs, WooCommerce order relations, option names, database tables, shortcodes and the standalone Hotel admin menu.

= 1.2.1 =
* Added the guest name directly to the booking overview so staff can identify and check in guests without opening each booking.
* Added a WooCommerce order fallback for older website bookings where the guest name is not stored in the hotel booking row.

= 1.2.0 =
* Updated the public product name to WebStyle Hotel Booking for WooCommerce.
* Added a stronger Free operating core for smaller hotels, guest houses and bed and breakfasts.
* Added manual walk-in, phone, email and external-channel reservations plus blocked dates.
* Added booking source and external-reference fields with server-side availability validation.
* Added a lightweight operations dashboard with clickable daily totals, arrivals, departures, current stays and upcoming arrivals.
* Added a combined printable daily overview plus separate arrival, departure and in-house guest lists.
* Added simple date pricing, one fixed extra service, simple tourist tax and customer overview.
* Added optional adult and child search as room-capacity matching.
* Added direct checkout, WooCommerce booking email details and temporary cart holds.
* Added a server-side 14-night Free stay limit and WordPress privacy exporter/eraser integration.
* Added a WordPress.org Playground preview blueprint with fictional demo data.
* Declared WooCommerce HPOS and Cart/Checkout Blocks compatibility.
* Prepared compatibility metadata for WordPress 7.0.2 and WooCommerce 11.0.0 testing.
* Removed referral-tracking parameters and retained the dedicated Hotel Booking admin menu.

= 1.1.53 =
* Improved the room search, availability display and WooCommerce booking flow.

Older release notes are available in `changelog.txt`.
