- Setting specific business hours for each day of the week
- Disabling checkout functionality when the store is closed
- Displaying informative notices to customers about store status
- Providing a shortcode to show store status on any page
Features
Store Status Control
When the store is outside of business hours:- The checkout functionality is disabled
- “Proceed to Checkout” buttons are hidden
- Informative notices are displayed on cart and checkout pages
- Customers are informed when the store will reopen
Shortcode Usage
You can display the current store status anywhere on your site using the[gellum_business_hours] shortcode.
Note: Prior to version 1.3.4, the shortcode was [gellum_store_status]. If you’re upgrading from a previous version, you’ll need to update any instances of the old shortcode.
Example Output:
- When open:
<span class="gellum-business-hours-status gellum-business-hours-open">Open</span> - When closing soon:
<span class="gellum-business-hours-status gellum-business-hours-open">Closing in 30 minutes</span> - When closed:
<span class="gellum-business-hours-status gellum-business-hours-closed">Closed. Next opening: Today at 9:00 am.</span>
Shortcode Placement Options:
- In page or post content:
[gellum_business_hours] - In a text widget:
[gellum_business_hours] - In PHP template files:
<?php echo do_shortcode('[gellum_business_hours]'); ?>
Default Styling
The plugin comes with built-in CSS styles for the shortcode output. You can see the default styling below or override it with your own custom CSS:Technical Details
Requirements
- WordPress 5.0 or higher
- WooCommerce 3.0 or higher
- PHP 7.2 or higher
Timezone Support
The plugin uses the timezone configured in your WordPress settings (Settings > General) to accurately determine if your store is open or closed.WooCommerce Compatibility
- Compatible with the latest WooCommerce versions (tested up to 9.8.1)
- Full support for WooCommerce HPOS (High-Performance Order Storage)
Troubleshooting
Store Status Is Incorrect
If your store status doesn’t match your expectations:- Verify your WordPress timezone setting (Settings > General)
- Check that your business hours are properly configured
- Remember that overnight schedules require the closing time to be earlier than the opening time
Checkout Still Available When Closed
If customers can still checkout when the store should be closed:- Check if you have caching plugins enabled and clear your cache
- Verify there are no theme or plugin conflicts overriding the WooCommerce checkout process
- Ensure your business hours are correctly set in the correct timezone
FAQ
Q: Does this plugin support multiple time slots per day?A: Currently, the plugin supports one opening and closing time per day. Q: Will orders placed right before closing time be processed?
A: Yes, any orders placed before the closing time will be accepted normally. Q: Can I customize the messages shown to customers?
A: The current version uses predefined messages, but they are translated based on your WordPress language settings. Q: Is the plugin compatible with multilingual sites?
A: Yes, the plugin is translation-ready and works with WordPress multilingual plugins.