SafeSale · Blog

Extend or end a Shopify sale early: changing the end date

A live sale cannot be edited in SafeSale. What to do instead when you need it to end now or run longer, in price rewrite and checkout discount mode.

The sale is live, the email went out, and now something has changed. The supplier delivery slipped and you need another week. Or the warehouse has sold through the stock you were trying to move and every extra day at the sale price is money given away. Either way the end date you set with such care last Tuesday is wrong, and you go looking for the field to change it.

In SafeSale that field is not there once a sale has started, and this post explains why, what to do instead in each direction, and the one place you should not make the change. If you want the general tour of what Cancel, End and Retry do, that is a separate post. This one is only about moving the end.

Why a live sale is read only

A SafeSale sale is editable while it is a draft. When you confirm it, the app takes the targets, the rules and the dates as a fixed plan, schedules a start job and an end job, and from then on shows a detail page rather than the editor. That is a deliberate choice. In price rewrite mode the start job takes a snapshot of every affected variant and writes new prices; the end job restores from that snapshot. If the dates or the rules could be changed underneath those jobs, the snapshot and the store would drift apart, which is exactly the failure the app exists to prevent.

So the honest answer to "how do I edit the end date" is that you do not edit it. You either bring the end forward with a button that was built for the purpose, or you add a second sale that picks up where the first leaves off.

Ending a sale early

On the sale's page, the button labelled Restore original prices is the way to end a running sale now. It is available while the sale is applying, active, ending or failed. Pressing it does three things in one transaction: the sale's end time is set to the current moment, its status moves to Ending, and the end job is scheduled to run immediately (or an already queued end job is pulled forward). An entry goes into the audit log saying who asked for the restore and when.

What the end job then does depends on the mechanism. For a price rewrite, each variant that the sale locked is compared with its snapshot and restored to the original price; variants that already match are counted as skipped. For a checkout discount, the automatic discount Shopify was applying is deleted, so a shopper who reaches checkout a minute later pays full price. Either way the sale ends up in Ended with the log telling you how many variants were touched.

The scheduler runs every 30 seconds, so "now" means within about half a minute. If the job hits an error it retries with a backoff, and if it gives up the sale is marked Failed so you can press Retry rather than wondering whether prices came back. The status guide walks through each of those states.

One case to know about: a rewrite sale created with no end date shows Manual on its detail page and runs until you press that button. There is no job waiting to end it, so nobody else will. We wrote up the trade-offs of that in the open-ended sale post.

Extending a sale that is running

There is no "push the end back" button, and adding one would have the snapshot problem described above. The approach that works is a second sale. Create a new sale with the same targets and the same rules, give it a start time equal to the first sale's end time and the new end you actually want, and confirm it. The first sale ends on schedule, the second starts in the same scheduler pass or the one after, and from the shopper's point of view the sale continued.

In rewrite mode that means the first sale's end job restores prices from its snapshot and the second sale's start job takes a fresh snapshot of those restored prices and rewrites them. The second snapshot is of the original prices, not the discounted ones, because the restore ran first. That order matters, and it is why the two sales should not overlap on the same variants: a variant locked by one sale is skipped by another, and the back-to-back sales post goes into what happens when they do.

In checkout discount mode the sequence is simpler. The first discount is deleted at its end time, the second is created at its start time, and nothing about stored prices changes in between. There is still a gap of up to a scheduler pass, but a shopper mid-checkout during those seconds is the only one who would notice.

If the sale has not started yet, none of this is needed. A scheduled sale can be cancelled with the Cancel button, which deletes its start job and logs that it was cancelled before it started, and then you create a fresh one with the dates you want. A draft can simply be edited; the end field is right there until you confirm.

Do not edit the discount on the Shopify Discounts page

A checkout discount sale appears in the Shopify admin under Discounts as an automatic discount with its own start and end fields. It is tempting to open it and change the end date there, and Shopify will let you. SafeSale will not know. Its end job was scheduled when the sale was confirmed, from the end time stored on the sale, and when that time arrives the job deletes the discount. If you pushed the Shopify end date out by a week, the discount still disappears at the original time. If you pulled it in, Shopify stops applying it early while SafeSale reports the sale as Active until its own job runs and finds nothing left to do.

The same goes for prices edited by hand during a rewrite sale, which has its own post. The rule is the same in both cases: the app owns the sale, so make the change through the app.

Time zones and the exact minute

Start and end times are interpreted in your store's time zone, and the detail page shows them that way. When you line up a follow-up sale, type the first sale's end time exactly as shown, not from memory and not from the email you sent in a different time zone. A sale ending at midnight on the night daylight saving changes is the classic trap and is covered in the scheduling post.

A short decision list

  • Sale has not started and the dates are wrong: Cancel it and create a new one. If it is still a draft, just edit the dates.
  • Sale is live and should stop now: Restore original prices. Check the audit log a minute later for the restored count or the deleted discount.
  • Sale is live and should run longer: create a second sale with the same targets and rules, starting when the first ends.
  • Sale is a checkout discount: never change its dates on the Discounts page.

SafeSale is free to install, and ending a sale early or lining up a follow-up works the same on every plan.

Frequently asked questions

Can I change the end date of a sale that is already running?

Not directly. Once a sale is confirmed it leaves the editor and only drafts can be edited. To end sooner, press Restore original prices and the end runs within about half a minute. To run longer, create a second sale on the same targets that starts at the moment the first one ends.

What happens to prices when I end a sale early?

The end time is moved to now and the normal end job runs at once. In price rewrite mode every locked variant is restored from the snapshot taken at the start. In checkout discount mode the automatic discount is deleted, so the next checkout pays full price. The audit log records who asked and when.

Can I edit the automatic discount's end date on the Shopify Discounts page instead?

You can, but SafeSale will not see the change. Its end job is scheduled from the end time stored in the sale, and when that time comes it deletes the discount regardless of what the Discounts page says. Make the change through SafeSale or the two will disagree.

Will shoppers see full prices between the first sale ending and the extension starting?

Possibly for a short time. The scheduler checks every 30 seconds, so a sale ending at 23:59 and a follow-up starting at 23:59 are handled in the same pass or the next one. On a rewrite sale that means prices are restored and rewritten again within roughly a minute. If that gap matters, start the follow-up a minute before the first ends and let the lock rules sort out the overlap.