The phrase “out of stock” is one of the most frustrating things a shopper can see while browsing an online store. If you’re a WooCommerce store owner, you know this feeling all too well.
When inventory runs low, the “out of stock” text appears on product pages and in the shop’s catalog. This text is usually accompanied by a message telling the shopper when the product will be back in stock.
While the “out of stock” text is a necessary part of running an online store, it can be frustrating for both shoppers and store owners. For shoppers, it means they can’t purchase the product they want. For store owners, it means lost sales and frustrated customers.
So, how can you get rid of the “out of stock” text in WooCommerce?
There are a few different ways to achieve this:
1. Use the Out of Stock Threshold plugin
2. Use the Hide Out of Stock Products plugin
3. Manually hide out of stock products using CSS
We’ll go over each method in more detail below.
Method 1: Use the Out of Stock Threshold plugin
The Out of Stock Threshold plugin is a free plugin that allows you to hide out of stock products from your WooCommerce shop page and replace them with a custom message or product image.
To remove the “Out of Stock” text from your WooCommerce products, go to your WordPress Dashboard and navigate to WooCommerce > Settings. On the Settings page, go to the Products tab and scroll down to the Inventory section. In the Inventory section, find the “Hide out of stock items from the catalog” option and select it. Save your changes and you’re done!
To use this plugin, simply install and activate it on your WordPress site. Then, go to WooCommerce > Settings > StockThreshold to configure the plugin’s settings.
On the settings page, you can choose to hide out of stock products completely, or replace them with a custom message or image. You can also specify which product categories should be affected by the plugin’s settings.
Once you’ve configured the plugin’s settings, out of stock products will be hidden from your shop page and replaced with your custom message or image (if you selected that option). Note that this only affects products that are out of stock at the time that the page is loaded; if a product becomes available after the page has been loaded, it will appear as normal. This may not be ideal for stores with frequently changing inventory levels, but it’s a good solution for stores with more static inventory levels.
Method 2: Use the Hide Out of Stock Products plugin
The Hide Out of Stock Products plugin is another free option for hiding out of stock products in WooCommerce. This plugin works by hiding out of stock products from your shop page, category pages, and search results. It also has an optional feature that allows you to redirect shoppers to a different page when they try to access an out of stock product page. Then, go to WooCommerce > Settings > Inventory to configure the plugin’s settings.
On the settings page, you can choose whether or not to redirect shoppers to a different page when they try to access an out of stock product page. You can also specify which user roles should be able to see hidden products (this is useful if you have staff members who need to be able to access out-of-stock products for some reason). By default, only administrators and shop managers can see hidden products; all other user roles are blocked from seeing them.
Method 3: Manually hide out-of-stock products using CSS
If you’re comfortable working with code, you can manually hide out-of-stock products from your WooCommerce shop page using CSS. This method requires adding a few lines of code to your theme’s stylesheet or child theme. If you’re not comfortable working with code, we recommend hiring a developer to help you with this.
Once added, code like this will hide all instances of “out of stock” on your site: ` .out-of-stock {display: none;}
` Note: This method will only work if your theme uses product class names. If your theme doesn’t use these class names, this method won’t work. In addition, this method won’t work if any other plugins are overriding these class names.
Conclusion: How Do I Get Rid Of Out Of Stock Text In WooCommerce? – There are many ways that you as a store owner can get rid off those pesky ‘Out Of Stock’ messages in WooCommerce including using plugins or editing CSS code yourself!