Discount Master Pro can show a sale badge on product images and a WooCommerce sale countdown timer that tells shoppers when a discount ends. Both read your discount rules, so the badge shows the real saving and the timer counts down to the rule’s end date. Both are Pro features.

What this feature does

The Sales flash replaces WooCommerce’s plain “Sale!” badge with one that shows the discount, for example Save 20% or $10 Off!. The saving is worked out the same way as the price on the page, so it matches what the shopper pays. On a variable product the badge uses the cheapest variation after discount. Products with no running rule keep the normal WooCommerce Sale! badge.

The Countdown timer shows “Sale ends in” and the time left, for every product discounted by a running rule that has an end date. When the time runs out, the timer swaps in the product’s new price and the saving badge disappears, without a page reload.

Both work on classic themes and on block themes.

Set up a WooCommerce sale countdown timer

  1. Give the rule an end date. The timer only shows for rules with an end date. Set one on the rule’s schedule (see Creating your first discount).
  2. Open Discount Master › Settings › Display. The Pro panels Sales flash and Countdown timer are on this screen.
  3. Switch on Countdown timer. Use the switch in the panel’s heading. The panel opens with its settings.
  4. Pick the text and placement. Write your own Text with {{time}} where the time goes, or leave it empty. Choose a Placement, for example under the price or on product cards in shop lists.
  5. Save, then open a discounted product. The timer appears while the rule is running.

To turn on the badge, switch on the Sales flash panel on the same screen and choose its Discount type.

Settings reference

Countdown timer

SettingWhat it doesDefault
Countdown timer (switch)Shows the countdown for rules with an end date.Off
TextUse {{time}} for the time left.Sale ends in {{time}}
PlacementUnder the price; After the short description; Before the add to cart button; After the add to cart button; Product cards in shop lists (and under the price on the product page); Only where I put the shortcode.Under the price
Font color, Background colorHex colours. Empty keeps your theme’s style.Empty
Font size (px)From 8 to 72. Empty keeps your theme’s size.Empty
Font weightWeight of the timer text.Theme default

Sales flash

SettingWhat it doesDefault
Sales flash (switch)Shows the discount badge on product images.Off
Discount typeFixed (amount off), Percentage, or Percent saved (custom text).Fixed
Custom textUse {{discount}} for the amount, for example {{discount}} Off!. With Percent saved, an empty field shows “Save” and the percentage.Empty
RoundRounds the figure up to the next whole number.Off
Color, Typography, Border, Padding & MarginBadge styling: background and font colour, font size and weight, border style, width, radius and colour, padding and margin.Plugin defaults
PositionTop left, Top right, Bottom left or Bottom right of the image.Top left

Show the countdown anywhere with a shortcode

Use [dmfwc_countdown] in a page builder or a custom product layout. Add id="123" to show the timer for another product than the one on the page. If you place the shortcode on a product page, set Placement to Only where I put the shortcode so the timer does not show twice.

What happens behind the scenes

Which rule the timer follows

The timer counts down to the earliest end date among the rules that are on now, visible on the page and discounting this product. Rules with no end date, or one already past, are left out. End dates are read in your site’s timezone (Settings › General).

On block themes the badge is added to the Product Image, Product Image Gallery and Product Sale Badge blocks, which is how block themes draw the shop grid and the product page.

Troubleshooting

The countdown does not show

Check that the switch is on, that the rule discounting the product is running now, and that it has an end date in the future. A rule with no end date never shows a timer.

The countdown does not show in my shop grid

The product card placement works in classic shop lists and the

shortcode. Product grids built with blocks do not show it.

The badge shows a different saving than I expected

The badge shows what the shopper actually saves after all your rules, including how they stack or which one wins. Check the rule order and stacking in Managing discounts and priority.