| 开发者 |
queuecommerce
riko910 |
|---|---|
| 更新时间 | 2026年5月10日 02:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
woocommerce_before_add_to_cart_form. Scripts and styles load only when a product actually has an active countdown and timers are enabled globally—keeping unrelated pages light.
Why merchants use this plugin
current_time / localized datetime inputs).role="timer", aria-label, dedicated aria-live region, and periodic screen-reader announcements (toggle under Settings).offct_resolve_end_time, offct_banner_html, offct_banner_root_attributes, offct_before_render_banner, offct_after_render_banner, offct_countdown_labels, offct_oct_data_localize, offct_product_meta_box_fields, offct_template_ids, and offct_template_label.offer-countdown-time.offct_resolve_end_time._oct_timer_mode) coordinated through Pro services.woocommerce_after_shop_loop_item), cart/checkout reservation timers, [oct_countdown] shortcode, and the offct/product-countdown Gutenberg block (WooCommerce block category).offct/v1 for authenticated store managers (list/update products tied to countdown meta).Requires Plugins: offer-countdown-time and validates dependencies on bootstrap.
Privacy
The free countdown does not profile visitors for marketing retargeting. Standard WordPress, WooCommerce, and hosting logs apply. Pro analytics (when licensed) store merchant-facing metrics according to Pro settings—review those screens before enabling in regulated industries.
/wp-content/plugins/offer-countdown-time/, or upload the ZIP via Plugins → Add New → Upload Plugin.Offer Countdown → Settings. Enable/disable all storefront timers, sale cleanup, default template, message position, accessibility enhancements, and expired-banner visibility.
On the product, fill Offer start date (optional). Until that timestamp passes, OFFCT_Frontend::get_product_countdown_context() returns no banner even if an end date exists.
Immediately before the add-to-cart form (woocommerce_before_add_to_cart_form). Developers may relocate output using the surrounding actions/filters.
Visually, the banner can hide or remain at zero depending on Hide expired banner under Settings. If Remove sale price when offer expires is enabled, WooCommerce sale metadata can clear via admin/cron checks and optional frontend coordination—consistent with OFFCT_Offer_Countdown_Time::remove_sale_price().
Yes. Disable Enable countdown timer globally on Offer Countdown → Settings.
Yes. Keep Accessibility enhancements enabled to expose timer semantics and polite aria-live updates (throttled in assets/js/frontend.js). Screen reader users get periodic consolidated announcements instead of noisy per-second chatter.
WordPress Settings → General timezone and GMT offset feed both PHP (current_time) and the JavaScript offset parser shipped with frontend.js.
You can explore the interfaces and previews. Persisted campaigns, saved Template Maker designs, and licensed analytics require Offer Countdown Timer for WooCommerce Pro with an active license (offct_is_pro_licensed() gates mutations).
Visit Offer Countdown → Upgrade Pro inside wp-admin or https://www.queuecommerce.com/offer-countdown-time/ . Activate Pro after this free plugin and WooCommerce.
_oct_start_date) so banners stay hidden until publish time.enable_accessibility) with timer semantics and screen reader region updates.hide_expired_banner) to control DOM removal versus displaying zeros at expiry.handle_save_all_settings).offct_oct_data_localize, nonce pairs for expiry/analytics endpoints).