=== SellHours for WooCommerce ===
Tags: woocommerce, product availability, schedule, opening hours, store hours
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 7.1
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Control the days and hours when individual WooCommerce products can be purchased.

== Description ==

SellHours for WooCommerce adds a simple weekly availability schedule to individual products.

Use it when a product should only be purchasable on specific weekdays or during specific hours. Each scheduled product can remain visible while purchasing is disabled, or be hidden from catalog listings while it is closed.

Features:

* Choose the weekdays when a product is available.
* Set one opening and closing time for the selected days.
* Supports overnight schedules such as 18:00 to 02:00.
* Show the product while closed but disable purchasing.
* Or hide the product from WooCommerce catalog listings while closed.
* Keep hidden products accessible through their direct product URL.
* Display a custom closed message.
* Optionally display the next availability time.
* Variable products inherit the schedule configured on the parent product.
* Uses the timezone configured in WordPress.
* Translation-ready using the WordPress.org translation system.

SellHours does not require an external service and does not send store or customer data to third parties.

== Installation ==

1. Install and activate SellHours for WooCommerce.
2. Edit a WooCommerce product.
3. Open Product data > General.
4. Enable Schedule availability.
5. Choose the available days, opening time, closing time and closed behavior.
6. Update the product.

== Frequently Asked Questions ==

= Does SellHours support variable products? =

Yes. Variations inherit the schedule configured on the parent variable product.

= Can a schedule cross midnight? =

Yes. For example, a schedule from 18:00 to 02:00 is supported.

= What is the difference between Disable purchasing and Hide from catalog? =

Disable purchasing keeps the product visible but prevents it from being purchased while closed. Hide from catalog removes the closed product from supported WooCommerce catalog and product listing queries.

= Can customers still open the direct URL of a hidden product? =

Yes. The direct product page remains accessible. The product cannot be purchased while it is outside its schedule.

= Which timezone does SellHours use? =

SellHours uses the timezone configured under WordPress Settings > General.

= Does SellHours send data to an external service? =

No. Scheduling is evaluated locally on the WordPress site.

== Changelog ==

= 1.0.3 =

* Load product editor styles through the WordPress enqueue system.
* Prepare translations for management through translate.wordpress.org.

= 1.0.0 =

* First public release of SellHours for WooCommerce.
* Weekly per-product availability schedules.
* Disable purchasing or hide closed products from catalog listings.
* Supports simple and variable products.
* Supports schedules that cross midnight.
* Direct product URLs remain accessible in hide mode.
* Optional next-availability message.
* Spanish translations for Argentina and Spain.


= 1.0.1 =
* Fixed the main plugin include path after the SellHours rename.

= 1.0.2 =
* Improved input sanitization and WordPress.org compatibility checks.
* Replaced a direct database lookup with WordPress query APIs.
* Declared testing with WordPress 7.1.
