Introduction

How To Show Out Of Stock Product in WooCommerce

Optimizing your WooCommerce store to enhance user experience and boost sales involves managing stock visibility effectively. By default, WooCommerce hides out-of-stock products from your store’s front end. However, there are instances where displaying these products can be beneficial.

This comprehensive guide will walk you through the steps to show out-of-stock products in WooCommerce, enabling you to maintain transparency with your customers and possibly convert those views into future sales.


Why Show Out-of-Stock Products?

Displaying out-of-stock products can provide several advantages:

  • Customer Engagement: Keeping out-of-stock items visible can inform customers that the product is popular and worth waiting for.

  • SEO Benefits: Hidden products can’t be indexed by search engines, potentially reducing your site’s SEO performance.

  • Future Sales: Customers can sign up for back-in-stock notifications, leading to potential sales as soon as the item is restocked.


Steps to Show Out-of-Stock Products in WooCommerce

Step 1: Navigate to WooCommerce Settings

  1. Log into your WordPress dashboard.

  2. Go to WooCommerce > Settings.


Step 2: Access the Product Settings

Within the WooCommerce settings, you’ll find the Products tab, which contains the options you need to modify stock visibility.

  1. Click on the Products tab.

  2. Select Inventory from the sub-menu.


Step 3: Modify the Out-of-Stock Visibility

  1. Look for the Out of stock visibility section.

  2. By default, the option Hide out of stock items from the catalog is checked. Uncheck this box.

  3. Click Save changes to apply the update.


Step 4: Customize the Out-of-Stock Message

To provide a better user experience, customize the out-of-stock message to keep customers informed.

  1. Go to Appearance > Customize in your WordPress dashboard.

  2. Click on WooCommerce > Product Catalog.

  3. Use the text editor to update the out-of-stock message, ensuring it’s informative and aligns with your brand’s tone.


Step 5: Enable Back-in-Stock Notifications

To capitalize on customer interest, consider enabling back-in-stock notifications. This keeps potential buyers engaged and informed when the product becomes available.

  • Use a plugin like Back In Stock Notifier for WooCommerce to manage these notifications effectively.

  • After installing and activating the plugin, configure the settings to suit your needs.


Step 6: Use Code Snippets for Advanced Customization

For those comfortable with coding, you can further customize the visibility of out-of-stock products using code snippets:

// Add this code to your theme's functions.php file
add_filter('woocommerce_product_query_meta_query', 'show_all_products_stock');
function show_all_products_stock($meta_query) {
if (!is_admin()) {
unset($meta_query[‘stock’]);
}
return $meta_query;
}

This snippet ensures that out-of-stock products are included in the main product query, making them visible in your store.


Final Thoughts

Displaying out-of-stock products in your WooCommerce store can significantly enhance your site’s visibility and user engagement.

By following the steps outlined in this guide, you ensure that your customers are informed, potentially improving your store’s SEO performance and future sales opportunities.

Remember to:

  • Keep your product information updated

  • Consider using plugins to automate notifications and enhance the overall shopping experience.

By implementing these strategies, you will not only show out-of-stock products in WooCommerce but also turn a potential challenge into an opportunity for growth.

What should you do next?

Thanks for reading till the end. Here are 4 ways we can help you grow:

Want to learn more?

Explore our full collection of How-To guides to master every feature and functionality.

Check out How-To Guides →

Looking to grow your store?

Browse our WooCommerce plugins to discover tools that can improve performance and boost your sales.

Browse WooCommerce Plugins →

Curious about related topics?

Visit our blog for more tutorials, expert insights, and the latest trends in e-commerce.

Visit Our Blog →

Still confused about this topic?

Submit your question or contact our support team directly. We are here to help!

Contact Support Team →

Latest Articles

Shopping Cart