Title: Disable Sales for WooCommerce
Author: michaltry
Published: <strong>2021 年 8 月 13 日</strong>
Last modified: 2026 年 10 月 20 日

---

搜索插件

![](https://ps.w.org/wc-disable-sales/assets/banner-772x250.png?rev=3755384)

![](https://ps.w.org/wc-disable-sales/assets/icon.svg?rev=3755384)

# Disable Sales for WooCommerce

 作者：[michaltry](https://profiles.wordpress.org/michaltry/)

[下载](https://downloads.wordpress.org/plugin/wc-disable-sales.1.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/wc-disable-sales/#description)
 * [评价](https://cn.wordpress.org/plugins/wc-disable-sales/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wc-disable-sales/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wc-disable-sales/#developers)

 [支持](https://wordpress.org/support/plugin/wc-disable-sales/)

## 描述

Going on holiday, closing over Christmas and New Year, doing a stock-take, selling
only in season or taking orders only during opening hours? Disable Sales for WooCommerce
closes the shop for the period you choose and opens it again by itself – no need
to set products out of stock or switch the shop to maintenance mode.

**Closed over Christmas?** Set 24 December to 1 January once, tick “Repeat” and 
your shop closes and reopens on its own every year. Customers can still browse, 
they just cannot order – and they see when you are back.

 * Pick a first and a last closed day; both are included, the shop reopens the day
   after.
 * Repeat the same period every year (also across New Year, e.g. 20 December to 
   6 January) – or use it for seasonal selling, e.g. Christmas trees only from late
   November to Christmas Eve.
 * Close the shop every day between two times, e.g. 22:00 to 06:00 or outside your
   delivery hours; closing hours may cross midnight.
 * While closed, no product can be added to the cart and existing carts cannot be
   checked out.
 * Customers see a WooCommerce-style notice on the cart and checkout – or on every
   page, if you want.
 * Write your own notice texts, with `[date_from]`/`[date_to]` for the dates and`[
   time_from]`/`[time_to]` for the daily hours.
 * Works with the classic cart and checkout and with the cart and checkout blocks;
   compatible with high-performance order storage (HPOS).
 * Dates and times use your shop’s timezone, date and time format.

Settings: WooCommerce  Settings  Disable Sales.

#### Disable Sales Pro

Need more than one period? The [Disable Sales Pro](https://regelkit.de/en/woocommerce-close-shop-temporarily)
add-on adds a weekly schedule with the public holidays of 14 EU countries, several
planned closures, orders during a pause with a shipping date, closing only selected
products, categories or delivery countries, an access link for wholesale and regular
customers, and a banner with a countdown.

This plugin is maintained by [Regelkit](https://regelkit.de/), makers of EU compliance
plugins for WooCommerce.

## 屏幕截图

[⌊Settings under WooCommerce → Settings → Disable Sales⌉⌊Settings under WooCommerce
→ Settings → Disable Sales⌉[

Settings under WooCommerce  Settings  Disable Sales

[⌊The notice customers see while the shop is closed⌉⌊The notice customers see while
the shop is closed⌉[

The notice customers see while the shop is closed

[⌊Daily closing hours, e.g. 22:00 to 06:00⌉⌊Daily closing hours, e.g. 22:00 to 06:
00⌉[

Daily closing hours, e.g. 22:00 to 06:00

## 安装

 1. Install from the WordPress plugin directory or upload `wc-disable-sales` to `/wp-
    content/plugins/`.
 2. Activate the plugin through the Plugins menu.
 3. Go to WooCommerce  Settings  Disable Sales, enable the plugin and set the dates
    and/or the daily closing hours.

## 常见问题

### Is the “until” date included?

Yes. If you close the shop until 15 August, customers can buy again on 16 August
at midnight (shop timezone).

### What do customers see?

Products show as not purchasable (no add-to-cart button), and the cart and checkout
show a notice with your dates. With “Always show notice” the notice appears on every
page of the shop.

### Does it work with the cart and checkout blocks?

Yes. With the block-based cart and checkout the closed shop is reported as a cart
error, which prevents checkout.

### Can I repeat the closure every year?

Yes, tick “Repeat”. The same days are used every year, including periods that cross
New Year.

### Can I close the shop every day, e.g. at night?

Yes. Tick “Close every day” and set the closing and reopening time, e.g. 22:00 and
06:00. The shop timezone is used. Daily hours work on their own or together with
the closing dates.

### How do I close my shop over Christmas and New Year?

Choose the first and the last closed day, e.g. 24 December and 1 January, and tick“
Repeat”. The period may cross New Year; the shop reopens on 2 January and does the
same every year. Write your own notice, e.g. “We are on holiday until [date_to] –
orders are possible again from 2 January.”

### Can I sell only in season?

Yes. Close the shop for the rest of the year and tick “Repeat”: for Christmas trees
sold from 25 November to 24 December, close it from 25 December to 24 November.

### Are existing orders affected?

No. Only new purchases are blocked; orders, subscriptions and the admin area work
as usual.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Disable Sales for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ michaltry ](https://profiles.wordpress.org/michaltry/)

[帮助将「Disable Sales for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wc-disable-sales)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wc-disable-sales/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wc-disable-sales/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wc-disable-sales/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wc-disable-sales/)。

## 更新日志

#### 1.2.1

 * After two weeks of use the settings page asks once for a review on WordPress.
   org (with “Maybe later” and “Don’t ask again”). It never appears anywhere else.
 * The new texts are translated into all bundled languages.

#### 1.2.0

 * New: daily closing hours – close the shop every day between two times (also across
   midnight), with its own notice text using [time_from] and [time_to].

#### 1.1.0

 * Tested with WordPress 7.1 and WooCommerce 11.2; declares compatibility with HPOS
   and the cart/checkout blocks.
 * Block cart and checkout: the closed shop is reported as a cart error.
 * Fixed: the notice was not shown on the classic cart and checkout.
 * The “until” date is now included (the shop reopens the day after); dates use 
   the shop’s timezone and date format.
 * Yearly repeats that cross New Year are handled correctly.
 * German translation; Polish translation completed.
 * All strings translatable and escaped; licence is GPL-2.0-or-later in the plugin
   header and readme.
 * Unit tests for the closing periods.

#### 1.0.8

 * Add load_plugin_textdomain hook

#### 1.0.7

 * Do not use variable as textdomain
 * Cleanup languages

#### 1.0.6

 * Add translations.

#### 1.0.5

 * Fix plugin versions.

#### 1.0.4

 * Add plugin icon.

#### 1.0.3

 * Fix screenshots in readme.

#### 1.0.2

 * Renamed the plugin.

#### 1.0.1

 * Add screenshots.

#### 1.0.0

 * Created a working plugin.

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**3 周前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wc-disable-sales/)
 * 标签
 * [christmas](https://cn.wordpress.org/plugins/tags/christmas/)[closed](https://cn.wordpress.org/plugins/tags/closed/)
   [holiday](https://cn.wordpress.org/plugins/tags/holiday/)[Opening Hours](https://cn.wordpress.org/plugins/tags/opening-hours/)
   [vacation](https://cn.wordpress.org/plugins/tags/vacation/)
 *  [高级视图](https://cn.wordpress.org/plugins/wc-disable-sales/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/wc-disable-sales/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wc-disable-sales/reviews/)

## 贡献者

 *   [ michaltry ](https://profiles.wordpress.org/michaltry/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wc-disable-sales/)