=== TatinAndCo Delivery Scheduler for WooCommerce ===
Contributors: jmarcsyd
Tags: woocommerce, delivery, pickup, date picker, time slot
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.6.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 8.0
WC tested up to: 10.7.0

Adds a delivery date and time picker to the WooCommerce checkout page.

== Description ==

TatinAndCo Delivery Scheduler for WooCommerce adds a pickup or delivery scheduling section to your WooCommerce checkout page. Customers select whether they want to pick up their order or have it delivered, choose a preferred date, and select a time slot — all before placing their order.

**Key Features:**

* Pickup or Delivery selection with a configurable minimum order amount to unlock delivery
* Date picker with configurable lead days, disabled weekdays, and blackout dates
* Time slot picker with configurable opening/closing hours, slot interval, and blackout times
* All button labels and customer-facing messages are editable from the WooCommerce admin panel
* Order type, date, and time are saved to the order and shown in the admin view, confirmation email, and thank-you page
* Fully compatible with WooCommerce High Performance Order Storage (HPOS)

== Installation ==

1. In your WordPress admin panel, go to Plugins > Add New > Upload Plugin.
2. Select the plugin ZIP file and click Install Now.
3. Once installed, click Activate Plugin.

WooCommerce must be installed and active before activating this plugin.

== First-Time Setup ==

After activation, the pickup/delivery section will not appear on your checkout page until the plugin has been configured. A yellow notice banner — "TatinAndCo Delivery Scheduler: Configure now →" — will appear across your WordPress admin panel as a reminder. It disappears automatically once you save your settings for the first time.

== Configuration ==

Navigate to WooCommerce > Pickup/Delivery in your admin panel.

= Pickup / Delivery Options =
* Set the Pickup and Delivery button labels shown to customers at checkout.
* Set the Minimum Order Amount required to unlock the delivery option. Set to 0 to always allow delivery regardless of order value.
* Enter the Pickup Notice message displayed at the bottom of the section (e.g. pickup address instructions). Leave it blank to hide the notice entirely.

= Date Settings =
* Set the Minimum Lead Days — how many days ahead the earliest bookable date is.
* Set the Maximum Lead Days — how far ahead customers can book.
* Check the Disabled Days of Week that are never available for pickup or delivery.
* Add Blackout Dates (one per line, YYYY-MM-DD) for public holidays or closures.

= Time Settings =
* Set your Opening and Closing Time to define the booking window.
* Choose a Time Slot Interval (15 min, 30 min, 1 hour, or 2 hours).
* Add Blackout Times (one per line, HH:MM) to remove specific slots every day.

== Frequently Asked Questions ==

= Can I allow delivery for all orders regardless of order value? =
Yes. Set the Minimum Amount for Delivery to 0 in the plugin settings.

= Can I hide the pickup notice? =
Yes. Leave the Pickup Notice field blank in the settings and it will not be displayed.

= Is this compatible with WooCommerce HPOS? =
Yes. The plugin declares full compatibility with WooCommerce High Performance Order Storage.

== Screenshots ==
1. Admin settings page under WooCommerce > Pickup/Delivery.
2. Pickup/Delivery options shown on the WooCommerce checkout page.

== Changelog ==

= 1.6.2 - 2026-05-21 =
* Update - Tested up to WordPress 7.0
* Update - Configuration admin notice label updated to "TatinAndCo Delivery Scheduler"
* Added - Screenshots for the WordPress.org listing

= 1.6.1 - 2026-05-18 =
* Fixed - Inline admin script moved to a separately enqueued file for Plugin Check compliance
* Fixed - Text domain updated to match the reserved plugin slug (tatinandco-delivery-scheduler-for-woocommerce)

= 1.6.0 - 2026-05-14 =
* Update - Plugin renamed to "TatinAndCo Delivery Scheduler for WooCommerce" for WordPress trademark compliance
* Update - Text domain changed to match plugin slug (delivery-date-picker)
* Fixed - "Tested up to" version aligned between plugin header and readme

= 1.5.0 - 2026-04-30 =
* Added - Plugin is hidden from the checkout page until settings are saved for the first time
* Added - Admin notice prompts configuration after activation with a direct link to settings

= 1.4.0 - 2026-04-19 =
* Added - Editable Pickup and Delivery button labels in settings
* Added - Editable Pickup Notice message in settings
* Update - Section title simplified to "Pickup or Delivery"
* Update - Delivery locked notice updated to "Free delivery is available for orders of X or more"

= 1.3.0 - 2026-04-19 =
* Added - Pickup / Delivery radio button selection at checkout
* Added - Configurable minimum order amount to unlock the delivery option
* Added - Order type saved to order and shown in admin, emails, and thank-you page
* Fixed - Sunday (day 0) incorrectly stripped when parsing disabled days of week

= 1.2.0 - 2026-04-19 =
* Added - Delivery time slot picker at checkout
* Added - Time Settings in admin: opening time, closing time, slot interval, and blackout times
* Added - Date and time displayed in admin order view, confirmation email, and thank-you page

= 1.1.0 - 2026-04-19 =
* Fixed - Replaced jQuery UI datepicker with native HTML5 date input for reliable cross-theme support
* Fixed - Datepicker re-initialises correctly after WooCommerce AJAX checkout updates

= 1.0.0 - 2026-04-19 =
* Initial release
