Linux 软件免费装
Banner图

Limbus Happy Hours for WooCommerce

开发者 contlimbu
更新时间 2026年9月25日 05:41
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce popup countdown flash sale happy hour

下载

1.9.3

详情介绍:

Limbus Happy Hours for WooCommerce lets store managers run time-limited "happy hour" promotions without touching product prices. A campaign applies a percentage discount to the product categories you choose, for the period you choose. When it ends, prices go back on their own. Campaigns Discounts and display Notify me Sales statistics Privacy This plugin does not connect to any external service and does not track visitors. Subscriber e-mail addresses are stored in a table of your own database, and can be exported or erased with the WordPress privacy tools under Tools > Export / Erase personal data. A salted hash of the visitor IP address is kept for ten minutes to limit abusive form submissions; the address itself is never stored. Settings, campaigns and subscribers are kept when the plugin is deleted, unless you tick "Delete subscribers and settings when the plugin is deleted". Simple, variable and external products are supported.

安装:

  1. Upload the plugin through Plugins > Add New > Upload Plugin, then activate it. WooCommerce must be active.
  2. Go to WooCommerce > Happy Hours and click "New campaign".
  3. Name the campaign, set the schedule, the discount and the categories, then configure the popup and the banner.
  4. Paste the [lhhw_banner] shortcode where the banner should appear, for example on the home page. The same shortcode always displays the banner of whichever campaign is running.
  5. Use the "Preview" link to check a campaign before its start time.
  6. Display settings shared by every campaign — texts, colour, category pages, the "notify me" button — are in the "Settings" tab.

屏幕截图:

  • A campaign being scheduled, with the recurrence summary and the next sessions.
  • Sales statistics for one campaign, with the breakdown per session.
  • A product page during a happy hour: struck-through price, label and countdown.
  • The banner on the home page and the popup.

常见问题:

Which shortcodes are available?

[lhhw_banner] displays the banner or slider. Attributes: countdown="overlay|below|none" and class="my-class". [lhhw_countdown] displays the countdown on its own. Attributes: style="inline|boxes" and label="yes|no". [lhhw_product_badge] places the product label manually, in an Elementor or theme template. Attribute: id="123". [lhhw_notify] displays the "notify me" link or form. Attribute: mode="form|link". They output nothing outside a happy hour.

How do recurring campaigns work?

Choose "Every day", "Days of the week" or "Days of the month", the first date and the time of each session, the duration (24 hours maximum) and an optional end date. Each session starts and ends on its own. When a chosen day does not exist in a month, the session takes place on the last day of that month. Campaign statistics show the totals and a breakdown per session.

How do several campaigns work together?

Only one campaign applies at a time: the running one. When none is running, the next scheduled campaign is used for the "starts in" displays. If two schedules overlap, the campaign that started last applies during the overlap, and the campaign list says so. Archived campaigns never run.

How are campaign statistics calculated?

When an order is placed, in classic or block checkout, each line sold at the happy hour price is tagged with the campaign, the price without the discount, the happy hour price and the discount, tax included. Statistics count paid orders (processing and completed) and deduct refunds. For orders placed before version 1.7, which carry no tag, the figures are estimated from the campaign categories and time slot, and are clearly flagged as estimates.

Does the happy hour start exactly on time?

Prices switch at the exact second. Emptying the page cache relies on WP-Cron, which runs on site visits. On a low-traffic site, set up a real server cron calling wp-cron.php every minute.

I use a CDN or a server cache (Cloudflare APO, Varnish).

Empty it when a session starts and ends, by hooking onto lhhw_happy_hour_start, lhhw_happy_hour_end or lhhw_purge_caches.

Why don't happy hour products appear in the native "On sale products" block?

WooCommerce builds that list from the database, and happy hour prices are calculated on the fly. Use [products category="your-category"] instead.

My theme hides the WooCommerce price in product lists.

The label is moved below the product title automatically when the theme hides the price. You can also choose "Below the title" for product lists, or place [lhhw_product_badge] in an Elementor or theme template.

How do category pages work with my theme?

During a campaign, the banner is shown on the pages of its categories. Outside campaigns, the pages of the categories ticked as dedicated show your message instead of products. The banner or the message is inserted with the standard WooCommerce hooks on classic themes, before the Product Collection block on block themes, and in JavaScript before the product grid for page builders.

Where are subscribers stored?

In a table of your own database: e-mail, campaign name, context, page and date. They can be exported to CSV, deleted from the list, and are handled by the WordPress personal data export and erasure tools. The form is protected by a honeypot and a rate limit.

Can I send subscribers to my e-mailing tool?

Use the lhhw_subscriber_added action (e-mail, data) to push new subscribers to your own tool, or import the CSV export.

At which width are mobile images used?

Up to 767 px, Elementor's default mobile breakpoint. Change it with the lhhw_mobile_breakpoint filter.

What happens to my settings when updating from 1.5?

The schedule, discount, categories, popup and banner saved in version 1.5 are converted into a first campaign automatically. If products were hidden outside the happy hour, the offer categories become the dedicated categories.

Developer hooks

Filters: lhhw_is_active, lhhw_current_campaign, lhhw_product_in_scope, lhhw_happy_price, lhhw_link_url, lhhw_show_popup, lhhw_mobile_breakpoint, lhhw_title_selector, lhhw_category_mode, lhhw_subscribe_rate_limit, lhhw_csv_separator, lhhw_stats_order_statuses. Actions: lhhw_happy_hour_start and lhhw_happy_hour_end (campaign ID as parameter), lhhw_purge_caches, lhhw_subscriber_added.

更新日志:

1.9.3 1.9.2 1.9.1 1.9.0 1.8.0 1.7.0 1.6.0 Earlier versions 1.5.0 added the "notify me" button, the subscribers tab and the GDPR tools. 1.4.0 added the category pages. 1.3.0 added the cart countdown. 1.2.0 added the label below the product title. 1.1.0 added stacked discounts and mobile images. 1.0.0 was the first release.