WP Manifestindependent plugin directory
manifest / ecommerce / hdwebmobile-sales-countdown

HDWebmobile Sales Countdown

Sale countdown timers and honest low-stock labels for WooCommerce — the 'only N left' figure is read live from real stock.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/htrxuan/hdwebmobile-sales-countdown/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Sale countdown timers and honest low-stock labels for WooCommerce. The "only N left" figure is read live from real stock, and every label is admin-only and escaped.

Description

  • Per-product sale countdown — on products whose sale has a scheduled end date.
  • Store-wide countdown bar — set an end time and a line of text; it hides itself when time runs out.
  • Low-stock label — "Only 3 left in stock" on products with managed stock at/below a threshold.

Why this plugin exists

Countdown / scarcity plugins keep shipping two problems; this one is built so neither can happen:

  • No stored XSS from a timer label. Every string is set only on the settings page, saved via the WordPress Settings API (manage_options + nonce), sanitize_text_field()'d, and printed with esc_html()/esc_attr(). No rich-text field. The countdown script only reads a numeric timestamp from a data- attribute and only writes textContent — never innerHTML.
  • No fake scarcity. The "only N left" number is always WC_Product::get_stock_quantity() — WooCommerce's real stock. Never typed in, never from a request. No count is shown for unmanaged stock, backorders, or variable parents.

Features

  • Per-product sale countdown from WooCommerce's own "Sale price dates"
  • Optional store-wide countdown bar
  • Live low-stock label with configurable threshold and {n} template
  • Classic and block product templates
  • No database table, no AJAX, no front-end input

Installation

  1. Upload to /wp-content/plugins/hdwebmobile-sales-countdown, or install through the WordPress plugins screen.
  2. Activate. WooCommerce must already be installed and active.
  3. Go to WooCommerce > HDWebmobile > Sales Countdown.

License

GPLv2 or later — https://www.gnu.org/licenses/gpl-2.0.html