If you are running a WooCommerce store, you may have come across the issue of out of stock variations. When a product is out of stock, WooCommerce will still show the variation in the dropdown menu on the product page.
This can be confusing for customers, and may result in them selecting an out of stock variation and then wondering why they can’t add it to their cart. In this article, we will show you how to hide out of stock variations in WooCommerce.
When a product is out of stock, WooCommerce will still show the variation in the dropdown menu on the product page. This can be confusing for customers, and may result in them selecting an out of stock variation and then wondering why they can’t add it to their cart.
The first thing you need to do is install and activate the WooCommerce Hide Out of Stock Items plugin. Upon activation, you need to visit WooCommerce » Settings page to configure plugin settings.
On the Settings page, click on the Products tab at the top and then click on the Inventory link that appears below it. This will take you to the inventory settings page for WooCommerce.
On this page, scroll down to the “Out of Stock Visibility” option and select the “Hide Out of Stock Items from Catalog”. Once you are done, click on the “Save Changes” button to store your changes.
Now when a product is out of stock or if all its variations are out of stock, then it won’t appear on your shop or category pages. However, it will still be accessible via direct URL.
If you want to completely remove products that are out of stock from your WooCommerce store, then check our guide on how to hide out of stock products in WooCommerce.
That’s all we hope this article helped you learn how to hide out of stock variations in WooCommerce.
Hiding Out Of Stock Variations In WooCommerce
1) The first thing you’ll need to do is install and activate the plugin called “WooCommerce Hide Out Of Stock Items” – once that’s done head over to WooCommerce > Settings.
2) Click on “Products” at the top followed by “Inventory”.
3) Scroll down until find an option called “Out Of Stock Visibility”, select “Hide Out Of Stock Items From Catalog”.
4) Save changes.
5) That’s all – now when a product is unavailable or all its variations are sold out it won’t appear on your shop or category pages but will still be accessible via direct URL.