=== HappyCoders Store Hours for WooCommerce ===
Contributors: happycoders, kombiahrk, muthupandi2002, imgopi2002, sureshkumar22
Tags: woocommerce, store hours, business hours, delivery hours, checkout control
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically disable WooCommerce checkout and orders outside your business hours. Perfect for restaurants, delivery stores and local businesses.

== Description ==

HappyCoders Store Hours for WooCommerce allows you to control when customers can place orders in your WooCommerce store.

If your business operates only during specific hours, this plugin automatically blocks orders outside your working schedule while still allowing customers to browse products.

Ideal for:
* Restaurants & Cloud Kitchens
* Grocery Delivery Stores
* Local Pickup Businesses
* Any WooCommerce store with operating hours

When your store is closed:
* Customers cannot add products to cart
* Checkout is blocked
* Orders cannot be placed
* A clear “Store Closed” message is shown

Lightweight, fast and built following WordPress coding standards.

== Features ==

= Store Hours Modes =
Choose how your store schedule works:

* Fixed Daily Hours – Same opening & closing time every day
* Weekly Schedule – Set different hours for each day (Mon–Sun)

= Emergency Store Closure =
Instantly close your store with one click.  
Perfect for unexpected situations like staff shortage or bad weather.

= Smart Re-Opening Message =
Displays friendly messages like:
* Opens today at 5:00 PM
* Opens tomorrow at 10:00 AM
* Opens Monday at 9:00 AM

= Complete Checkout Protection =
Orders are blocked at all levels:
* Add to Cart button
* AJAX / Quick add to cart
* Proceed to Checkout
* Place Order button
* Direct checkout URL access

= Works With Any Theme =
Compatible with all WooCommerce themes and quick-view popups.

= Lightweight & Fast =
* No external libraries
* No tracking
* No API calls
* No database tables created

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Go to **WooCommerce → Store Hours**
4. Configure your schedule and save changes

== Frequently Asked Questions ==

= Will customers still be able to browse products when the store is closed? =
Yes. Browsing works normally. Only ordering is blocked.

= Does this plugin work with AJAX add to cart and quick view popups? =
Yes. All add-to-cart methods are blocked when the store is closed.

= Does it create database tables? =
No. The plugin uses the WordPress Options API and does not create custom tables.

= Will cart items be removed when the store closes? =
No. Items remain in the cart. Only checkout is blocked.

= Does this plugin slow down my site? =
No. The plugin is lightweight and optimized for performance.

== Screenshots ==

1. Store Hours settings page with Fixed Daily Hours mode
2. Weekly schedule configuration with per-day opening hours
3. Store closed banner shown on the shop page

== Recommended Plugins by HappyCoders ==

If you like this plugin, you may also find these useful:

= HappyCoders OTP Login for WooCommerce =
Secure your store with OTP-based login and registration. Perfect for stores that want passwordless authentication.
https://wordpress.org/plugins/happy-coders-otp-login/

= HappyCoders Multiple Addresses for WooCommerce =
Allow customers to save and select multiple billing and shipping addresses for faster checkout.
https://wordpress.org/plugins/happycoders-multiple-addresses/

== Changelog ==

= 1.0.4 =
* Tested up to WordPress 7.0

= 1.0.3 =
* Initial release
* Fixed daily hours mode
* Weekly schedule mode
* Emergency manual store closure
* Smart reopening message
* Full checkout protection
* WooCommerce compatibility

== Upgrade Notice ==

= 1.0.4 =
* Confirmed compatibility with WordPress 7.0.

= 1.0.3 =
Initial release of HappyCoders Store Hours for WooCommerce.
