=== Rentline – rentals by the day for WooCommerce ===
Contributors: afkzonagroup
Tags: rental, booking, availability calendar, woocommerce, hire
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Rent out equipment, vehicles, rooms or anything else by the day or night, with an availability calendar and no double bookings.

== Description ==

Rentline turns any simple WooCommerce product into a rental. Customers choose their dates in a calendar that shows what is free, see the exact price before they add it to the cart, and pay with any WooCommerce payment method.

= For customers =

* An availability calendar on the product page: taken days are struck through, the price of the chosen period appears at once
* Works on phones and with the keyboard; without JavaScript, two date fields do the same job
* The rental period is shown in the cart, at checkout, in the order emails and in My account

= For you =

* Charge by the day (pick-up and return day both count) or by the night (check-in to check-out, so the check-out day is free for the next guest)
* Several units of the same item: rent out three kayaks from one product
* Minimum and maximum rental length, earliest start, how far ahead customers can book
* Days kept free between rentals, for cleaning or checks
* Discounts for longer rentals, for example 10% from 7 days
* Unavailable periods for maintenance, holidays or rentals taken elsewhere
* WooCommerce › Rentals: what is coming up, what is out now, what came back and what was cancelled, with the customer's phone number

= No double bookings =

* Dates are checked when added to the cart, when the quantity changes and again at checkout
* At checkout the dates are reserved under a lock, so two customers can never take the last unit at the same moment
* Unpaid orders hold their dates only for WooCommerce's "Hold stock" time; cancelled, failed and refunded orders release them
* If a customer pays after their hold ran out and someone else has taken the dates, the order is kept and you get an email at once

Works with the block checkout and the classic checkout, with block themes and classic themes, and with WooCommerce's order storage (HPOS).

== Installation ==

1. Install and activate WooCommerce and Rentline.
2. Edit a simple product, tick "Rental" next to "Virtual", and set its price per day or night.
3. Open the "Rental" tab in Product data to set units, lengths, days between rentals, discounts and unavailable periods.

== Frequently Asked Questions ==

= What does the product's price mean for a rental? =

The price per day or per night. A sale price works as usual. Discounts for longer rentals are taken off the total.

= Do I need to manage stock? =

No. Rentals use the number of units set in the Rental tab; WooCommerce stock is switched off for rental products, because selling stock would use up a rental item for good.

= Can I change the look of the calendar? =

It takes its font and colours from your theme. Set the CSS variable --rentline-accent to change the colour of the chosen dates, or copy templates/rental-dates.php to yourtheme/rentline/rental-dates.php.

= What happens to rentals when I delete the plugin? =

Orders keep their rental dates. The rentals table and settings are removed only when you choose that under WooCommerce › Settings › Products › Rentals.

== Changelog ==

= 1.0.0 =
* First release.
