=== Datery – Delivery Date for WooCommerce ===
Contributors: lehuydat098298, freemius
Tags: delivery date, delivery slots, delivery time, order delivery, checkout
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.2
WC requires at least: 6.0
WC tested up to: 10.8
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let customers pick a delivery date (and time slot) at WooCommerce checkout. Lightweight, locale-safe, correct timezone & cutoff.

== Description ==

**Datery – Delivery Date for WooCommerce** adds a clean **delivery date picker to your WooCommerce checkout**, so customers can tell you *when* they want their order delivered. Perfect for bakeries, florists, fresh food, groceries, restaurants, catering and any store that delivers on a schedule.

It is built to be **light and reliable** — the two things merchants complain about most with other delivery date plugins (bloat, broken date pickers, and wrong cut-off times).

[youtube or screenshots show the date field on classic and block checkout]

= Why choose this delivery date plugin? =

* **Works on classic AND block checkout.** A native date picker on the classic (shortcode) checkout, and an auto-filtered **delivery date dropdown** on the new block checkout via WooCommerce's official Additional Checkout Fields API. Many plugins only support one.
* **Locale-safe.** Uses the browser's native date input — no jQuery UI — so the date picker does not break in non-English languages.
* **Correct timezone & cut-off time.** The earliest delivery date is calculated in *your store's* timezone. Orders placed after your daily cut-off time correctly roll over to the next available day. No more "ordered after 2pm but still got today" mistakes.
* **No bloat, no fatal errors.** Hooks into WooCommerce cleanly and disables itself safely if WooCommerce is not active.
* **HPOS compatible.** Fully works with WooCommerce High-Performance Order Storage.

= Free features =

* **Delivery date field at checkout** — required or optional.
* **Minimum lead time** — e.g. earliest delivery = today + 1 day.
* **Booking window** — how many days ahead customers can schedule a delivery.
* **Same-day cut-off time** — orders after the cut-off move to the next day (timezone-aware).
* **Saved to the order** and shown on the thank-you page, in order emails (HTML + plain text), and in My Account.
* **Editable in admin** — change the delivery date on the order screen, plus a "Delivery date" column in the orders list.
* **Translation ready** and works with multilingual stores.

= Datery Pro =

[Datery Pro](https://easydeliverydate.com/) adds full delivery scheduling control:

* **Delivery time slots** at checkout (e.g. 9–12, 12–3, 3–6) with **per-slot capacity**.
* **Blocked weekdays** — e.g. no Sunday delivery.
* **Blocked dates (holidays)** — close specific days.
* **Daily order limit** — cap how many deliveries you accept per day.
* **Delivery surcharge** — a flat delivery fee and/or a fee per time slot.

Get Pro at [easydeliverydate.com](https://easydeliverydate.com/).

== External services ==

This plugin connects to Freemius, a third-party service we use to handle the optional usage-data opt-in, license activation for the premium version, and software updates for the premium version.

What data is sent and when:

* **On opt-in (only if you agree):** anonymous usage data such as your site URL, admin email, site language, active theme, the WordPress and PHP versions, and the plugin version. This is used to improve the plugin. The opt-in is optional and can be skipped — the free plugin works fully without it.
* **On premium license activation and update checks:** your site URL, license key, and plugin/WordPress/PHP versions, so the service can validate the license and deliver updates for the premium version.

No data is sent for the free plugin's core delivery-date features. Data is only transmitted during the actions described above.

This service is provided by Freemius, Inc. Please review their Terms of Service and Privacy Policy:

* Terms of Service: https://freemius.com/terms/
* Privacy Policy: https://freemius.com/privacy/

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install it from **Plugins → Add New** and search for "Datery".
2. Activate the plugin.
3. Go to **WooCommerce → Settings → Delivery Date** to set your lead time, booking window and cut-off time.

That's it — the delivery date field appears at checkout on both classic and block checkout.

== Frequently Asked Questions ==

= Does it work with the new WooCommerce block checkout? =
Yes. On the block checkout the delivery date appears as a dropdown of available dates (the native date input is not supported inside the block checkout), and the value is saved to the order exactly like the classic checkout.

= Can I let customers choose a delivery time as well as a date? =
Yes — delivery **time slots** are part of Datery Pro. You define slots like 9–12 or 2–5pm, optionally with a capacity limit and a fee per slot.

= Will the delivery date show in order confirmation emails? =
Yes — in both HTML and plain-text emails, on the thank-you page, and on the My Account order page. Store admins also see it on the order screen and as a column in the orders list.

= Can I stop customers ordering same-day delivery after a cut-off time? =
Yes. Set a cut-off time (e.g. 14:00) and a minimum lead time. Orders placed after the cut-off automatically move the earliest delivery date to the next day, calculated in your store's timezone.

= Can I block Sundays or public holidays? =
Yes, with Datery Pro. You can block specific weekdays (e.g. no Sunday delivery) and add a list of blocked dates for holidays.

= Is it compatible with HPOS (High-Performance Order Storage)? =
Yes, the plugin declares HPOS compatibility and stores the delivery date on the order using the WooCommerce order API.

= Does it work in languages other than English? =
Yes. It uses the browser's native date input (no jQuery UI), so it is locale-safe and translation ready.

== Screenshots ==

1. Delivery date picker on the classic checkout.
2. Delivery date dropdown on the block checkout.
3. The delivery date shown on the order confirmation (thank-you) page.
4. Delivery date column in the WooCommerce orders list.
5. Settings: lead time, booking window and cut-off time.
6. Pro: delivery time slots, blocked dates and surcharges.

== Changelog ==

= 1.0.0 =
* Initial release: delivery date at classic + block checkout, lead time, booking window, same-day cut-off, order/email/My Account display, admin column, HPOS support.

== Upgrade Notice ==

= 1.0.0 =
First release of Datery – Delivery Date for WooCommerce.
