Why show the time left
A date on a banner ("until Sunday") asks shoppers to work out how long is left. "Ends in 2 days" next to the price does it for them, on every product card, at the moment they compare products.
Keep it honest: use it for a sale that really ends at that date. A countdown that restarts every week quickly loses shoppers' trust.
Create the badge from the Ending soon template
In MDBadgePilot, click Create badge and pick Ending soon (Pro). The template contains:
- Text: Ends {ends_in}. On the store it becomes "Ends in 3 days".
- Condition: On sale (compare-at price) is yes, so only discounted products get the badge.
- Schedule: ends in 7 days. Set the end date of your real sale.
- Design: red rectangle in the bottom-left corner.
Use {ends_in} in any badge
The variable works in any badge text, as long as the badge has an end date under Schedule. The editor refuses to save a badge that uses {ends_in} without one.
Examples: "Last chance: ends {ends_in}" on a clearance collection, or "Offer ends {ends_in}" on a tag you add to the products of a flash sale.
When the sale ends
At the end date the badge disappears from the store by itself. To run the same sale again, change the dates in the editor: the badge, its targeting and its design stay as they were.
Frequently asked questions
What does the badge show exactly?
Whole days while more than 48 hours are left ("Ends in 3 days"), then hours ("Ends in 5 hours"). The wording follows the language of your store, so a French storefront shows "Fin dans 3 jours".
Does it count down live, like a timer?
No, the text is computed when the page loads. It stays readable and does not distract from the product, and it is always up to date on the next page view.
Which plan do I need?
{ends_in} needs an end date, and scheduling is a Pro feature ($7.99/month, 7-day free trial).
Can I combine it with the discount?
Yes, a badge can use several variables, for example "-{discount}% · ends {ends_in}", within the 30-character limit of the badge text.