A Shopify sale banner that schedules itself
A client announced a sale with precise edges, live at 7pm on a Thursday, finished at 7pm the following Friday. The standard way that goes is a calendar reminder, someone at a laptop at seven in the evening publishing a banner, and a second reminder eight days later that gets missed, leaving the sale advertised for a weekend after it ended.
What we did
We gave the theme’s announcement bar and hero slides two new fields, show from and hide from. A shared check reads them before rendering, and a block outside its window leaves the page entirely rather than hiding in the markup. The client writes the two dates when the sale is planned, and the banner appears on its own at 7pm and takes itself down when the sale ends, with no one at a laptop for either edge.
Two details did most of the work. Several pieces of the theme counted blocks to drive styling and slide dots, and a block that vanishes on schedule breaks those counts unless they count what is visible instead, so they now do. And the check fails open, meaning a date typo or a window that would blank the whole section gets ignored rather than obeyed. A mistyped schedule should cost you the scheduling, not your home page hero.
What to take from it
Anything on your store with a published start and end time is a small automation waiting to be claimed. The failure mode of manual timing is not usually the launch, which everyone remembers, it is the takedown, which nobody owns. A banner still advertising a finished sale reads as carelessness to a customer, or worse as bait. If the date is known when the promotion is planned, the store should be told the date, not a person.