Linux 软件免费装
Banner图

Hide or Show Out-of-Stock Products for WooCommerce

开发者 charliemac24
Charlie Macaraeg
更新时间 2026年11月4日 22:58
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3
版权网址: 版权信息

标签

woocommerce out of stock hide products product visibility catalog visibility

下载

2.1.0 2.4.0 1.0 2.0.3 2.3.0 2.3.1 2.0.4 2.0 2.0.1 2.0.2 2.2.0 2.2.1

详情介绍:

WooCommerce gives you one switch for sold-out products: hide all of them, or show all of them. That is fine for a small store, but it gets in the way when some out-of-stock products should stay visible (a best seller that is restocking next week, a seasonal item, a page that ranks well in Google) while others should disappear from the shop. Hide or Show Out-of-Stock Products for WooCommerce lets you decide, product by product, where each out-of-stock product appears: Everything is managed from one screen under Products -> Out-of-Stock Visibility. The screen lists only your out-of-stock products, so you can review them, change one, or update dozens at once. Key benefits Features How it works
  1. Activate the plugin (WooCommerce must be active).
  2. Go to Products -> Out-of-Stock Visibility.
  3. Review the reporting snapshot, then use the table to set each out-of-stock product to the visibility you want, individually or in bulk.
When a product's visibility is changed, the plugin applies it using WooCommerce's standard product catalog visibility. Good to know before you install Who this plugin is for Practical examples

安装:

  1. Upload the plugin files to the /wp-content/plugins/out-of-stock-display-manager-for-woocommerce/ directory, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Make sure WooCommerce is installed and activated.
  4. Go to Products -> Out-of-Stock Visibility.
  5. Review the reporting snapshot and configure how your out-of-stock products should appear.

屏幕截图:

  • The out-of-stock product list: Days Out of Stock, Current mode, a visibility dropdown and an Update button for each product, with bulk actions and search above the table.
  • Filtering and search: a visibility-mode card, the "60+ days" duration filter and a SKU search applied together, with the active filters shown above the product table.
  • The contextual help panel and the "How this screen works" notice, explaining the four visibility modes, what happens when a product is restocked, and how the plugin works with WooCommerce's "Hide out of stock items" setting.

升级注意事项:

2.4.0 Adds an optional setting to restore normal visibility when a product is restocked. It is off for existing sites, so nothing changes until you turn it on, and clarifies how the plugin works with WooCommerce's "Hide out of stock items" setting. 2.3.1 Fixes visibility defaults for existing products, protects bulk updates with product-level permissions, and restores the previous global stock visibility setting on deactivation. 2.3.0 Refreshes the Out of Stock Visibility Manager dashboard with a cleaner, more premium flat design. 2.2.1 Updates the product visibility notification so successful changes are clearly shown in green. 2.2.0 Recommended update for WordPress 7.0.1 compatibility, cleaner admin rendering, and refreshed plugin metadata.

常见问题:

Does this plugin require WooCommerce?

Yes. WooCommerce must be installed and activated for this plugin to work.

How do I hide out-of-stock products in WooCommerce but keep some of them visible?

WooCommerce's built-in "Hide out of stock items" setting applies to every product. With this plugin active, go to Products -> Out-of-Stock Visibility and choose a visibility option for each out-of-stock product. Products you set to "Shop and search results" stay visible; products you set to "Hidden" are removed from the shop and search results.

Where do I find the plugin's settings?

Under Products -> Out-of-Stock Visibility in the WordPress admin. Access requires the WooCommerce "manage_woocommerce" capability.

What are the four visibility options?

  • Shop and search results: the product appears in the shop and in search.
  • Shop only: the product appears in the shop but not in search results.
  • Search results only: the product appears in search results but not in the shop.
  • Hidden: the product appears in neither.

Does the plugin change the WooCommerce "Hide out of stock items" setting?

Yes. While the plugin is active it keeps that setting turned off, because your per-product choices replace it; if it is turned on again it is switched back off on the next page load. The previous value is saved when you activate the plugin and restored when you deactivate it. If you first activated the plugin on version 2.3.0 or earlier, no previous value was saved, and the setting stays off after deactivation; you can turn it back on under WooCommerce -> Settings -> Products -> Inventory.

I was hiding all out-of-stock products before. What happens when I activate the plugin?

Out-of-stock products without a saved choice in this plugin are shown. After activating, open Products -> Out-of-Stock Visibility and set the products you want hidden, for example by selecting them and using the bulk action.

What happens to out-of-stock products I do nothing with?

They stay visible in the shop and in search results, unless they already carry a WooCommerce catalog visibility setting that hides them.

Can I still open a hidden product by its URL?

Yes. Hidden products are removed from shop and search listings, but the plugin does not block or redirect the product page itself.

Does this plugin affect in-stock products?

Only when a product you managed is restocked. You set visibility for products while they are out of stock, and in-stock products you have never set are not touched. If you restock a product that you set to Hidden, Shop only, or Search results only, what happens depends on the setting "Restore normal visibility when a product is back in stock": when it is on, the product returns to Shop and search results; when it is off, it keeps its setting. See "What happens when a hidden product is restocked?" below.

Does this plugin change product stock levels?

No. It does not change stock quantities or stock status and does not replace WooCommerce inventory management. It only controls how out-of-stock products appear to customers.

Can I update many products at once?

Yes. Tick the checkboxes next to the products, choose a visibility option under Bulk actions, and click "Apply to selected products".

Can I find out-of-stock products by SKU?

Yes. The search box on the management screen matches product name or SKU.

Can I see how long a product has been out of stock?

Yes. The "Days Out of Stock" column shows how long each product has been continuously out of stock and the date it went out of stock. You can filter the list by duration and sort by it. For products that were already out of stock when the plugin was updated to a version with this feature, the count starts from that update, because WooCommerce does not record when a product originally sold out.

Does the plugin include reporting?

Yes. The reporting snapshot at the top of the screen shows the total number of out-of-stock products, how many are in each visibility mode, a category breakdown, and a "Needs review" list of sold-out products that are still visible to customers.

What happens when a hidden product is restocked?

It depends on the setting Restore normal visibility when a product is back in stock, which you can change at the top of Products -> Out-of-Stock Visibility.

  • Setting on (the default for new installations): when the product's stock status changes from out of stock to in stock, it goes back to Shop and search results. This only applies to products you set to Shop only, Search results only, or Hidden with this plugin. A product you hid yourself in WooCommerce, or whose catalog visibility you changed after setting it here, is not changed. If you change the catalog visibility in the same save that restocks a product, your choice is kept. Any way of restocking counts: the product editor, Quick Edit, bulk edit, the WooCommerce REST API, WP-CLI, or a stock quantity change. Saving the product editor with its Catalog visibility field left as it was does not keep the product hidden; to keep it hidden, turn the setting off, or choose a different visibility in the same save.
  • Setting off (the default when updating from an earlier version): the product keeps its choice. A product set to Hidden stays out of shop and search listings after it is back in stock. A product set to Shop only stays out of search results, and one set to Search results only stays out of the shop. To show it again, open it with Edit or Quick Edit, change its catalog visibility to "Shop and search results", and update the product.
The setting only acts at the moment of restocking. It does not change products that were already restocked before you turned it on.

Why is the restore setting off after I updated?

Earlier versions kept a product's choice after a restock, so updating does not change that on its own. Turn the setting on at the top of Products -> Out-of-Stock Visibility if you want restocked products to go back to normal visibility automatically.

Does this plugin move out-of-stock products to the end of the shop page?

No. It does not change product sort order. It only controls whether an out-of-stock product appears in the shop and in search results.

Does it work with variable products?

The plugin works at the product level, using the stock status WooCommerce stores for the product. Visibility is set for the product as a whole, not for individual variations. Restoring visibility on restock has been tested with simple and variable products. Other product types, such as grouped, external, or subscription products, have not been tested.

Why would I keep an out-of-stock product visible?

Common reasons are search engine visibility, customers who want to bookmark or compare a product, seasonal demand, and products that are about to be restocked.

Is this plugin beginner-friendly?

Yes. Everything is managed from one admin screen without code.

更新日志:

2.4.0 2.3.1 2.3.0 2.2.1 2.2.0 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0