=== SolutionsPRO Store Open Hours ===
Contributors: ghz1990
Tags: woocommerce, store hours, opening hours, business hours, checkout
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Manage WooCommerce business hours, show an off-hours popup, and block checkout while your store is closed.

== Description ==

SolutionsPRO Store Open Hours lets WooCommerce store owners define business hours for each day of the week. When the store is closed, the plugin can show a customizable popup and prevent customers from submitting checkout orders.

Features:

* Separate schedule for each day of the week.
* Overnight schedules such as 18:00–02:00.
* Uses the timezone configured in WordPress.
* Responsive off-hours popup.
* Optional background image from the WordPress media library.
* Editable badge, title, message, and button text.
* Text, accent, and overlay colors through the WordPress Color Picker.
* Adjustable overlay opacity.
* Configurable popup repeat interval.
* Blocks the cart checkout button outside business hours.
* Blocks the Place Order button on checkout.
* Server-side checkout validation to prevent order submission while closed.
* Editable closed-hours notice.
* Default popup and checkout texts follow the site language until you change them.
* Translation-ready with bundled translations: Ukrainian, Russian, German, Spanish, French, and Dutch, plus Italian, Polish, Portuguese (Brazil), Japanese, and Simplified Chinese.

The plugin does not send store or visitor data to external services and does not include tracking code.

= About the developer =

SolutionsPRO Store Open Hours is developed and maintained by [WPSolutionsPRO](https://wpsolutionspro.com/). Visit our website for support, documentation, and other WooCommerce solutions.

== Installation ==

1. Install and activate WooCommerce.
2. Upload and activate SolutionsPRO Store Open Hours.
3. Go to WooCommerce > Store Open Hours.
4. Configure the weekly schedule, popup text, appearance, and checkout messages.
5. Save the settings.

== Frequently Asked Questions ==

= Does the plugin require WooCommerce? =

Yes. WooCommerce is declared as a required plugin dependency.

= Which timezone is used? =

The plugin uses the timezone configured under Settings > General in WordPress.

= Are overnight opening hours supported? =

Yes. For example, a schedule from 18:00 to 02:00 remains open after midnight until 02:00 the following day.

= Does the plugin send data to third-party services? =

No. The plugin does not make external API requests and does not include analytics or tracking.

= Can I translate the plugin? =

Yes. You can help translate the plugin into your language on [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/solutionspro-store-open-hours/). Language packs from WordPress.org are used automatically when available, and the bundled translations are used otherwise.

= What happens to the settings when the plugin is deleted? =

The plugin removes its saved settings when it is deleted through WordPress.

== Screenshots ==

1. Off-hours popup shown to visitors while the store is closed.
2. General settings and popup appearance: badge, title, text, button labels, background image, colors, and overlay opacity.
3. Weekly business hours with per-day schedules and overnight shift support.
4. Cart while the store is closed: the checkout button is disabled and a notice explains when to come back.

== Changelog ==

= 1.0.5 =
* Fixed: unchecked options (Enable plugin and day checkboxes) were not saved on the first save and needed a second click.
* New: the default popup, button, and checkout texts are shown in the site language until you customize them.
* New: the popup badge uses your site title by default instead of "Website Name".
* Improved: complete Ukrainian, Russian, German, Spanish, French, and Dutch translations; updated Italian, Polish, Portuguese (Brazil), Japanese, and Simplified Chinese.
* Improved: Dutch translation follows the WordPress.org Dutch glossary.
* Fixed: bundled translations are now loaded from the plugin's languages folder.
* Fixed: translation file headers (plural forms, language codes); removed the unused uk_UA files.

= 1.0.4 =
* Fixed a fatal error on PHP 7.4: replaced DateTimeImmutable::createFromInterface() (PHP 8.0+) in the overnight schedule check.
* Front-end popup assets are now loaded only while the store is closed.
* Removed the Plugin URI header that pointed to a page that does not exist yet.

= 1.0.3 =
* Prepared the plugin for WordPress.org submission.
* Matched the text domain and translation filenames to the plugin slug.
* Removed hardcoded non-English strings from the admin JavaScript.
* Added explicit GPL license headers and repository metadata.
* Improved settings sanitization and permissions handling.

= 1.0.2 =
* Improved localization and default texts.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.5 =
Fixes unchecked options not saving on the first save. Full translations for Ukrainian, Russian, German, Spanish, French, and Dutch. Default customer-facing texts now follow the site language.
