Recommended releases

Download Released

Temporarily stops online orders in an Ubercart store for a set period: a
holiday closure, a stocktake, illness, or moving premises. The rest of the
site is untouched, including product pages, contact forms and webforms, so
customers can still browse and enquire.

While the store is paused:

  • Add to cart is refused, however it is attempted: product pages, catalog
    "Buy it now" buttons, Views fields and cart/add links.
  • Add to cart and Buy it now buttons are replaced by a short message
    (optional).
  • The cart and checkout pages redirect to the home page, or a page you
    choose, with the same message.
  • The shopping cart block is hidden (optional).
  • A banner block shows your message, with token support. Place it with
    Layouts; it shows nothing while the store is open.

Set a start and end time and it opens and closes by itself, or leave them
empty and use the switch. Optionally:

  • Advance notice: a separate message shown for a while before the pause,
    for example a week of "Last orders before Christmas in 3 days 4 hours".
  • Reopening message: replaces the banner near the end of the pause, for
    example "We're back in 2 days".
  • Live countdown: the [store-pause:countdown] token counts down to the
    pause, or during it to the reopening. It runs in the browser, so it stays
    right on cached pages.
  • Repeat every year: for seasonal stores, such as tickets sold only from
    January to June, or a closure every Christmas.

Orders that are already being paid for are not cut off. The checkout
completion page and payment gateway callbacks (IPN, webhooks, hosted payment
page returns) are never blocked.

Requirements

  • Ubercart: Cart (uc_cart) and Product (uc_product).

Installation

  1. Install this module using the official Backdrop CMS instructions at
    https://docs.backdropcms.org/documentation/extend-with-modules.
  2. Go to Store > Configuration > Store pause
    (admin/store/settings/pause). Set the dates and messages, and tick
    Pause the store.
  3. Place the Store pause notice block in your layouts, usually at the
    top of the page.
  4. Give the Bypass store pause permission to anyone who needs to test the
    live store during a pause. They can add to cart and check out as normal,
    and see a warning that customers cannot.

See MANUAL.md for the settings in detail.

Page caching: run cron often around the start and end

Anonymous visitors are usually served cached pages. When the store opens or
closes, those pages are out of date: the banner is missing or still showing,
and the Add to cart buttons are wrong. The module clears the page cache when
it sees the change, which happens on the next cron run, or the next page
built for a logged-in user.

So make sure cron runs often (every 5 to 15 minutes) around the start and end
times, and around the advance notice and reopening message times. If cron can
only run at set times, put each time just before a cron run: with cron at 7pm,
a start of 6:55pm, not 7:05pm. Until it
does, the cached pages may be wrong, although no orders can
be placed: adding to cart and checkout are always checked live.

If the site sits behind a reverse proxy or CDN (Varnish, Cloudflare and
similar), purge it at the start and end as well.

Issues

Bugs and feature requests should be reported in the issue queue:
https://github.com/backdrop-contrib/uc_store_pause/issues

Security

Reviewed on 27 November 2026 for the kinds of vulnerability reported in the
Drupal security advisories of 7 October to 25 November 2026. Those advisories
were for Drupal 10/11 and do not apply to Backdrop directly; this module was
checked for the same classes of mistake.

Please report security issues privately to security@backdropcms.org, not in
the issue queue.

Current Maintainer(s)

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory
for complete text.