该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Limit Orders for WooCommerce

描述

While many stores would be thrilled to have a never-ending order queue, some store owners are faced with the opposite problem: how can I make sure I don’t get overwhelmed by too many orders?

Limit Orders for WooCommerce lets you limit the number of orders your store will accept per day, week, or month, while giving you full control over the messaging shown to your customers when orders are no longer being accepted. Once limiting is in effect, “Add to Cart” buttons and the checkout screens will automatically be disabled.

For full documentation on configuration options and available filters, please visit the plugin’s GitHub repository.

屏幕截图

  • The settings screen for Limit Orders for WooCommerce
  • A notice at the top of a WooCommerce catalog with the message "Due to increased demand, new orders will be temporarily suspended until March 27, 2020."

安装

  1. Upload the limit-orders/ directory to /wp-content/plugins/
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Visit “WooCommerce › Settings › Order Limiting” to configure limits and messaging

常见问题

What happens when the order limit is reached?

Once the maximum number of orders has been placed, Limit Orders for WooCommerce will use hooks within WooCommerce itself to temporarily mark all products as unpurchasable, remove the “Place Order” button, and disable the checkout form.

Meanwhile, a fully-customizable message will be displayed on all WooCommerce shop pages, informing customers that ordering has been paused.

Can store owners still create orders manually?

Yes, the order creation process through WP Admin is unaffected.

Can the plugin limit orders based on some custom time interval?

The base plugin defines several common intervals: hourly, daily, weekly, and monthly.

In the event that you require a custom interval, they may be registered with a few filters. Several examples are available in the plugin’s GitHub repository.

Can the plugin limit orders based on category/amount/items/etc.?

The plugin is designed to work based on the total number of orders, but as of version 1.3.0 filters have been introduced that enable developers to specify which orders should be counted against the limit.

Documentation for these filters is available in the plugin’s GitHub repository.

评价

2021年9月8日 1 回复
Thank you for taking the time out to produce such a great solution. We have a new client who's weary of receiving big orders through the site, while getting their processes in order. This is a great plug-in, that's simple to install, implement and it works. It's much appreciated.
2021年3月22日
Who would have thought we would ever need to limit order levels, but in these crazy times that's exactly what I needed for one of my clients. This plugin is simple, but does the job well. Thanks!
2020年4月16日 1 回复
This is a useful plugin when there is a limit to the number of orders you can handle. And when I raised an issue with the plugin this morning it was fixed within hours. Great service.
阅读所有3条评价

贡献者及开发者

“Limit Orders for WooCommerce” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Limit Orders for WooCommerce”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Limit Orders for WooCommerce”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

For a complete list of changes, please see the plugin’s changelog on GitHub.

2.0.0 (2022-11-14)

  • Verified compatibility with WooCommerce 7.1. ([#70])

1.3.1 (2020-09-17)

  • Fixed issue where clearing transients would prevent the order limiting from working.
  • Clarify the behavior of the {current_interval} and {next_interval} placeholders.

1.3.0 (2020-07-16)

  • Added new “Reset order limiting” WooCommerce tool.
  • Introduce new filters for customizing order counting logic.
  • Automatically clear the cached order count when settings are updated or WooCommerce order transients are cleared.
  • Verify compatibility with WooCommerce 4.3.

1.2.1 (2020-05-08)

  • Verify compatibility with WooCommerce 4.1.

1.2.0 (2020-04-27)

  • Add a new “hourly” interval, enabling store owners to limit the number of orders per hour.
  • Added new placeholders for customer-facing messaging.

1.1.2 (2020-04-17)

  • Override WordPress’ default “LIMIT” on queries, which was preventing stores with limits > 10 from stopping orders

1.1.1 (2020-04-16)

  • Prevent errors from occurring in WP Admin due to the customer-facing notice

1.1.0 (2020-04-15)

  • Include a “Limit Orders” section in the WooCommerce System Status Report

1.0.0 (2020-03-27)

Initial release of the plugin.