Stop selling products automatically on a legal cutoff date
On a set date and time, sales of named product lines stop on their own. The pages stay online, so search rankings are kept.
0
people needed online when the cutoff arrives
2
product lines locked so far
Still live
pages stay online, so search rankings are kept
The problem
Picture a new rule that takes effect at midnight. A rule change gave a multi-brand retailer a hard date after which certain product lines could no longer be sold.
Unpublishing hundreds of products by hand at midnight risks mistakes and loses search rankings. Forgetting one product is a legal risk.
What we built
Before the cutoff:
- A countdown bar in the header that counts down to the date and links to a deals page.
- Notices on the affected category pages.
- A shipping delay notice on product pages and the cart during the order rush.
- At the cutoff, with no one needing to be online: the countdown hides itself, links to the affected lines disappear from the header and footer, and Add to Cart, quantity and bulk price controls are removed from those products.
- The notices change to an "unavailable" message.
- Product and category pages stay online, so their search rankings are kept.
- A preview link lets staff see the locked state before the date.
How it works
- Everything runs in the store’s own theme. There is no separate server or database.
- One script holds a small settings block: an on/off switch, the cutoff time and the preview option.
- The cutoff time includes its time zone, so the lock happens at the same moment for every visitor, whatever their own clock says.
- BigCommerce loads parts of the page after the first render, so the script watches the page and applies the lock to new content as it appears.
- An early version froze category pages. The lock changed the page, which triggered the watcher, which ran the lock again, in a loop. The fix makes each change only once and groups bursts of page changes into one pass.
Results
- The lock is switched on for two product lines.
- The same structure was pointed at different product lines with different dates as later cutoffs came up.
- The steps were written up as a playbook so the same change can be applied to a sister store.
Could this work for your store?
The pattern works for any time-boxed sale, recall or legal cutoff: a countdown, notices that change at a set time, buying controls that remove themselves, a preview link, and a page watcher that cannot loop.
What changes per store: which products are covered, the date and the wording.
A cutoff date is one kind of law change. Compliance upkeep is how we track the next one for you and update your rules before it lands.
See the checkout compliance offerRelated work
Block checkout by state or ZIP on BigCommerce
Stops a shopper before payment when something in the cart cannot ship to their address, and cancels and refunds anything that gets through anyway.
Read the casePromo badges and deals pages that update themselves
Product cards, product pages, the cart and deals pages show which promotions apply, and they update on their own when a promotion changes or ends.
Read the caseSee where your own checkout stands
The first step is the same for every store: a free check of your shipping policy and checkout, sent back as a short video.
BuildPath is run by Ian Mason, a developer with 20 years in ecommerce and search.
- The check is free
- A short video of what we find
- If we find nothing, we tell you that