=== EbeRent – Equipment Rental for WooCommerce ===
Contributors: komlavi
Tags: woocommerce, rental, booking, equipment rental, hire
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Equipment rental plugin for WooCommerce. Rental dates on product pages, availability checks, buffer days and a bookings dashboard.

== Description ==

**Equipment rental plugin for WooCommerce.** EbeRent turns your WooCommerce products into rentable equipment: customers pick their rental dates on the product page, the price is calculated per day, and every booking is protected against double-booking — automatically.

Built for photo and video gear, sound and event equipment, construction tools, sports and outdoor gear, and any business that rents physical equipment.

**How it works:**

1. Enable rental mode on any WooCommerce product and set a daily price.
2. The customer selects a start and end date on the product page.
3. EbeRent checks availability in real time — dates that overlap an existing booking (including buffer days) cannot be booked.
4. The customer checks out normally through WooCommerce; the booking is created with the order.
5. You manage all bookings from a dedicated dashboard under **WooCommerce > Rentals**.

**Key features:**

* Turn any WooCommerce product into a rentable item with a per-day price.
* Real-time availability check — double bookings are impossible, overlapping dates are refused.
* Configurable buffer days between two rentals (for cleaning, inspection or return shipping).
* Bookings dashboard under **WooCommerce > Rentals**: customer name, linked product and order, rental period, billed days, colour-coded status badges, filters and pagination.
* Booking statuses: Reserved, Blocked, Cancelled — with status filters and counters.
* Manually block dates on any product (maintenance, repairs, offline rentals) directly from the product edit screen, and remove blocks from the dashboard.
* Bookings are tied to WooCommerce orders — refunds and cancellations stay in your normal workflow.

**Ideal for:**

* Photo and video equipment rental
* Sound, lighting and event equipment
* Construction and power tools
* Sports and outdoor gear
* Party and furniture hire

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install via **Plugins > Add New**.
2. Activate the plugin.
3. Edit a WooCommerce product and open the **Rental** tab to enable rental mode and set the daily price.
4. Manage bookings under **WooCommerce > Rentals**.

== Frequently Asked Questions ==

= Does it prevent double bookings? =

Yes. Every booking attempt is checked against existing reservations and blocked dates, including buffer days. Overlapping dates are refused at booking time.

= What are buffer days? =

Extra days automatically reserved after each rental, so you have time to clean, inspect or ship the equipment back before the next customer picks it up.

= Can I block dates manually? =

Yes. In the product's Rental tab, set a "Block from" and "Block until" date — useful for maintenance or equipment rented offline. Blocks appear in the Rentals dashboard and can be removed at any time.

= What happens when an order is cancelled or refunded? =

The booking is cancelled with it and the dates become available again.

= Does it work with my theme? =

EbeRent uses standard WooCommerce hooks and templates, so it works with any theme that supports WooCommerce.

== Screenshots ==

1. Product page — rental date selection and price calculation.
2. Product edit screen — Rental tab with daily price, buffer days and date blocking.
3. Bookings dashboard — WooCommerce > Rentals with status filters.

== Changelog ==

= 1.0.0 =
* Initial release.
* Rental mode on any WooCommerce product with per-day pricing.
* Real-time availability check with anti-overlap protection.
* Configurable buffer days between rentals.
* Bookings dashboard (WooCommerce > Rentals) with statuses, filters and pagination.
* Manual date blocking per product with one-click removal.
