开发者 | jamesgol |
---|---|
更新时间 | 2022年6月14日 04:02 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 5.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
The first request that hits the server will get the item if there is only one available. The other person will receive a "Item is no longer available" message.
They will receive a "Quantity requested not available" message and their original quantity will be retained.
You can set this by using the 'wc_csr_min_no_check' filter. This is an advanced option and should only be used on high volume sites with predictable orders. The setting to use depends on your stock quantites and how much you expect to sell. If you have a stock of 100 and only expect to sell 10 per hour you could set this to 25 and set the expiration to one hour and you should be safe. Always err on the side of caution, you don't want to run out of stock when someone believes they will get an item. If in doubt, don't use this option.
We recommend turning off page and database caching for pages affected by this plugin. For example, assuming your site uses the default Woocommerce "shop" page and W3 Total Cache, add "shop/*" (without the quotes) to "Never cache the following pages:" at the page cache and database cache settings.
Yes it does, but the default character length (64) for POST/REQUEST variable names is not sufficient. I suggest following the recomendations from WooCommerce and increasing these values. For more information: https://docs.woocommerce.com/document/problems-with-large-amounts-of-data-not-saving-variations-rates-etc/