Overview
WooCommerce Happy Hours Discount introduces an automated promotional engine tailored for WooCommerce stores. It transforms standard catalog browsing into an interactive flash-sale experience without modifying underlying catalog prices or disrupting regular inventory records.
How the Promotional Engine Operates
Unlike traditional WooCommerce sales that overwrite catalog regular prices or require manual coupon code distribution, WooCommerce Happy Hours Discount evaluates active promotional rules in real time:
- Timeframe Verification: When a customer visits your store, the extension validates the current store time against all enabled Happy Hour rules.
- Audience Filtering: The system checks whether the visiting customer matches the rule's audience criteria (all shoppers or selected customer accounts).
- Automated Calculation: When qualifying products or categories are placed into the cart, or when the cart subtotal satisfies configured threshold conditions, discounts are calculated and deducted automatically.
- Order Immutability: Once the order is placed, applied discounts and promotional metadata are locked into the order record, ensuring bookkeeping and tax audits remain 100% accurate.
┌─────────────────────────────────────────────────────────────────┐
│ Storefront Visitor │
└───────────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Active Happy Hour Timeframe Validation │
│ (Checks Date, Time Range, and Customer Eligibility) │
└───────────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Hanging Signboard Countdown Banner Active │
│ (Displays Live Days, Hours, Minutes, and Seconds) │
└───────────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Cart & Checkout Evaluation │
│ Priority 1: Product Discount → Line Item Deduction │
│ Priority 2: Category Discount → Line Item Deduction │
│ Priority 3: Cart Total Range → Negative Fee Line │
└───────────────────────────────┬─────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Order Recorded in HPOS │
│ (Persisted in Custom Order Tables with Itemized Savings) │
└─────────────────────────────────────────────────────────────────┘
Business Use Cases
1. Off-Peak Traffic Stimulation
Many online stores experience quiet hours during weekday mornings or late evenings. Setting up recurring Happy Hour windows during these periods incentivizes price-sensitive shoppers to complete purchases when sales volume is normally low.
2. High-Urgency Flash Sales
Promotional events with live countdown timers encourage swift purchasing decisions. Shoppers browsing your catalog can visually see the remaining time on the hanging signboard widget, discouraging delay.
3. Inventory Clearance on Select Categories
Store managers can direct promotional discounts to slow-moving departments (e.g., clearance clothing, seasonal accessories) without having to manually discount each individual SKU.
4. Basket Size Expansion
Using Cart Total discount rules (e.g., spend between $100 and $250 to receive $20 off), merchants encourage customers to add supplementary products to reach the discount tier.
5. Exclusive Loyalty Member Perks
By restricting happy hour rules to specific registered customer accounts, store owners can offer private VIP shopping windows or reward high-value repeat clients.
Modern Platform Compatibility
High-Performance Order Storage (HPOS)
WooCommerce Happy Hours Discount is fully certified for WooCommerce High-Performance Order Storage (HPOS). Order fees, discounts, and metadata are written cleanly to custom order tables (wp_wc_orders and wp_woocommerce_order_itemmeta), ensuring seamless database performance and future-proof operation.
Cart and Checkout Block Compatibility
The extension operates flawlessly whether your WooCommerce store uses classic shortcode-based cart/checkout templates or the modern WooCommerce Cart and Checkout Blocks. Discounts are processed via standard WooCommerce Fee APIs and item data filters.
WordPress Multisite Ready
The extension provides complete multisite network compatibility. When network-activated, database schemas are created automatically across all network subsites, allowing network administrators to deploy happy hour campaigns across multi-brand setups with ease.
System Requirements
| Component | Minimum Requirement | Tested Up To |
|---|---|---|
| WordPress | 6.5 or higher | 7.1 (7.1.4) |
| WooCommerce | 9.0 or higher | 11.2 (11.2.1) |
| PHP | 7.4 or higher | 8.4 (PHP 8.1+ recommended) |
| MySQL / MariaDB | MySQL 5.7+ / MariaDB 10.3+ | MySQL 8.0+ / MariaDB 10.6+ |
| Web Server | Apache or Nginx | Nginx with FastCGI |
| Browser Support | Modern HTML5 browsers | Chrome, Firefox, Safari, Edge |
