=== Staylodgic – Booking & Activity Manager for Boutique Hotels ===
Contributors: staylodgic
Tested up to: 6.8
Tags: booking system, property management, hotel, booking engine, reservation
Stable tag: 1.0.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
StayLodgic is a user-friendly property management system designed specifically for small to medium hotels, guesthouses, and vacation rentals.

== Description ==

Staylodgic is a user-friendly hotel management plugin designed to simplify and enhance operations for small to medium-sized hotels, guesthouses, and boutique properties. With a comprehensive suite of features, Staylodgic allows you to manage room bookings, activity reservations, guest registration, invoicing, and more.

Developed by a boutique hotel owner, with real-world needs in mind.

Introduction video:

https://www.youtube.com/watch?v=AIUeFPAjzP0

== Shortcodes ==

* [staylodgic_activity_booking_search]
  Displays a search form for guests to browse and book available activities.

* [staylodgic_hotel_booking_search]  
  Provides a search form for guests to find and book available rooms. Helps streamline the booking process by showing room availability based on their preferences.

* [staylodgic_hotel_booking_details]
  Displays status about a specific hotel booking.

* [staylodgic_guest_registration]  
  Adds a customizable guest registration form to your website. Ideal for collecting guest details online or facilitating pre-arrival registration via shared links or QR codes.

== Features ==

* Hotel Management
  - Setup new hotel settings.

* Online Payments
  - Accept online payments via WooCommerce (e.g., WooCommerce Payments and other compatible gateways).
  - Enable from **StayLodgic → Settings**.
  - After a booking is made, guests can complete payment online.
  - Payments are logged as WooCommerce orders; booking details show payment status and link to the order in wp-admin.

* Room Management
  - Create rooms for reservations.
  - Add room rates.
  - Set room quantity.
  - Create and manage reservations.

* Activity Management
  - Create activities for guests.
  - Add scheduled times to the weekly calendar.
  - Create and manage activity reservations.

* Dashboard Tools
  - View bookings overview.
  - View activities overview.
  - Check availability calendar.
  - Monitor annual availability.

* Customer Management
  - Create and manage customer profiles.

* Guest Registration
  - Customize guest registration forms.
  - Create guest registrations.
  - Enable online registration.
  - Share registration links or QR codes.

* Invoicing
  - Generate booking invoices.
  - Generate activity invoices.

* Import/Export Data
  - Export bookings as CSV files.
  - Export guest registration data for a specific month.

* Tax Management
  - Apply fixed taxes.
  - Set percentage-based taxes.
  - Add per-day taxes.
  - Configure per-person taxes.

* Meal Plans
  - Create free meal plans.
  - Create paid meal plans.

* Per Person Pricing
  - Add fixed price increments per occupant.
  - Apply percentage-based increments per occupant.

* Discounts
  - Offer last-minute booking discounts.
  - Provide early booking discounts.
  - Enable long-stay discounts.

== Benefits ==

* Streamlined Hotel Operations
  - Simplify and centralize hotel and room management.
  - Manage reservations, activities, and guest registration in one platform.

* Time-Saving Automation
  - Automate guest registration with customizable forms and online submissions.
  - Generate invoices for bookings and activities instantly.

* Comprehensive Dashboard
  - Gain insights with an overview of bookings and activities.
  - View availability calendars and annual availability at a glance.

* Enhanced Guest Experience
  - Offer flexible meal plans and activity reservations.
  - Provide seamless guest registration with links or QR codes.

* Flexible Pricing and Discounts
  - Configure per-person pricing with fixed or percentage-based increments.
  - Apply discounts for early bookings, last-minute reservations, or long stays.

* Efficient Tax Management
  - Set up taxes per booking, per person, per day, or as a percentage.

* Data Management Made Easy
  - Export bookings and guest registration data for analysis or reporting.

* Customizable for Small to Medium Hotels
  - Adaptable to guesthouses, boutique hotels, and properties with specific needs.

* Affordable and Scalable
  - Ideal for small businesses.
  - Scales easily for larger hotels and businesses.

* User-Friendly Interface
  - Designed for ease of use with intuitive navigation and clear workflows.

* Improved Decision-Making
  - Leverage data insights to optimize operations and improve guest satisfaction.

== Helpful How-To ==

<strong>Get started quickly with these helpful guides from the Staylodgic Help PDF:</strong>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=6" target="_blank">Configure Hotel Settings</a></strong><br />
Set up your hotel’s pages, discounts, taxes, meal plans, and general settings.<br />
<em>(See pages 6–13 of the PDF)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=14" target="_blank">Create Rooms and Bed Layouts</a></strong><br />
Add rooms, set base rates, configure occupants, and define bed types.<br />
<em>(See pages 14–20)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=21" target="_blank">Manage Availability and Rates</a></strong><br />
Use the Availability Calendar to control room quantity and pricing by date.<br />
<em>(See pages 21–35)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=36" target="_blank">Add a Booking Manually</a></strong><br />
Step-by-step on how to create a reservation manually.<br />
<em>(See pages 36–40)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=41" target="_blank">Generate Booking Invoices</a></strong><br />
Quickly print or save invoices for room bookings.<br />
<em>(See page 41)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=42" target="_blank">Set Up Guest Registration</a></strong><br />
Customize forms, generate QR codes, and track registration status.<br />
<em>(See pages 42–46)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=47" target="_blank">Create Activities & Reservations</a></strong><br />
Define activities, schedule time slots, and manage guest signups.<br />
<em>(See pages 47–53)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=54" target="_blank">Generate Activity Invoices</a></strong><br />
Produce printable invoices for activity bookings.<br />
<em>(See page 54)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=55" target="_blank">Use the Booking Dashboard</a></strong><br />
Track arrivals, departures, and revenue trends using the graphs.<br />
<em>(See pages 55–58)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=59" target="_blank">Annual Availability View</a></strong><br />
Get a yearly bird’s-eye view of all your bookings.<br />
<em>(See pages 59–60)</em></p>

<p><strong><a href="https://staylodgic.com/wp-content/uploads/2025/04/Staylodgic-Plugin-Help-Guide.pdf#page=61" target="_blank">Export Bookings and Registrations</a></strong><br />
Download CSV files of all bookings and guest data.<br />
<em>(See pages 61–63)</em></p>

## Development
This plugin uses minified JS and CSS files for better performance.
Source files are available in the following repository:

driver.js
https://github.com/kamranahmedse/driver.js

DataTables
https://github.com/DataTables/DataTablesSrc

Lightbox for Bootstrap 5
https://github.com/trvswgnr/bs5-lightbox

HTML2Canvas
https://github.com/niklasvh/html2canvas

Signature Pad
https://github.com/szimek/signature_pad

VelocityJS
https://github.com/julianshapiro/velocity

Fontawesome
https://github.com/FortAwesome/Font-Awesome

QRcode JS
https://github.com/davidshimjs/qrcodejs

PDFMake
https://github.com/bpampuch/pdfmake

Flatpickr
https://github.com/flatpickr/flatpickr

jsPDF
https://github.com/parallax/jsPDF

Chart.js
https://github.com/chartjs/Chart.js

Select2
https://github.com/select2/select2

== Screenshots ==

1. Room Availability Calendar – View confirmed, pending, and cancelled bookings in a visual calendar format.
2. Date Picker for Booking – A user-friendly calendar interface for selecting check-in and check-out dates.
3. Room Booking Page – Guests can easily search availability and book rooms directly from your website.
4. Booking Overview Dashboard – Manage and monitor all hotel bookings in one place.
5. Annual Availability View – Get a year-round glance at room availability for better planning.
6. Activity Ticket with QR Code – Printable or scannable tickets for booked activities, complete with QR verification.

== Frequently Asked Questions ==

Q: What is StayLodgic?
A: StayLodgic is a WordPress plugin designed for small hotels and guesthouses to manage room bookings, guest registrations, and activity reservations effortlessly.

Q: Who is StayLodgic for?
A: It’s built specifically for small hotels, guesthouses, and boutique properties looking for a lightweight, self-hosted alternative to complex hotel management systems.

Q: Do I need coding skills to use StayLodgic?
A: Not at all! StayLodgic is designed to work out of the box with shortcodes you can place on pages. No coding required.

Q: Can I customize the booking pages?
A: Yes. The plugin uses standard WordPress pages and templates, so you can customize them via your theme or child theme.

Q: Does it work with Gutenberg or classic editor?
A: Yes. You can use the shortcodes in either the Gutenberg block editor or the classic editor.

Q: Is it compatible with multilingual plugins?
A: StayLodgic uses standard WordPress functions and should work well with multilingual plugins like WPML or Polylang.

Q: Will it slow down my website?
A: No. StayLodgic is optimized for performance and designed to be lean and efficient, especially for small-scale operations.

Q: Can I use StayLodgic for free?
A: Yes! StayLodgic is free and open source. You’re welcome to use, modify, and extend it as you like.

Q: Is support available?
A: Support is available through the WordPress plugin support forum. Active development means bugs and requests are addressed regularly.

== Changelog ==

= 1.0.7 =
* Adds online payment integration with WooCommerce

= 1.0.6 =
* Added option to set the maximum number of future days for updating rates and availability in the calendar.

= 1.0.5 =
* Fixed total calculation when taxes aren't activated for activites.

= 1.0.4 =
* Improved handling of invalid date inputs to prevent errors during registration display.

= 1.0.3 =
* Fixed an issue related to velocity UI

= 1.0.2 =
* Added admin notice and auto-deactivation for PHP versions below 7.4

= 1.0.1 =
* Minor update and internal improvements

= 1.0.0 =
Initial release:
* Simplified room booking system using WordPress pages and shortcodes
* Guest registration with digital signature support
* Activity booking with QR code tickets
* Availability calendar with monthly and yearly views
* Booking status tracking: Confirmed, Pending, Cancelled
* Clean, mobile-friendly frontend booking UI
* Built-in templates for quick setup
* Designed for small hotels and boutique stays

== Upgrade Notice ==

= 1.0.7 =

Adds online payment integration, which can be enabled from **Plugin Settings**.  
This feature works with **WooCommerce Payments** and allows guests to complete their booking payments directly after a reservation is made.  

Payments are automatically logged in WooCommerce, and the payment status appears in the **Booking Details** page along with a direct link to the corresponding WooCommerce order (visible in admin mode).