How to Display “In Stock” Availability on WooCommerce Product Pages

By default, WooCommerce doesn’t display the “in stock” status or availability on the product page. While this is an expected standard for online shoppers these days I am still surprised why this is the case. Since I found the solution, I wanted to share it with you since I know you’re not the only one who will find this little WooCommerce modification useful.

Why Show an “In Stock” Message?

“In Stock” or “Out of Stock”, which ever the case may be, showing the availability status even if you never, ever run out of stock in an item helps conversion rates because it provides a signal to the customer that it is in fact in stock. Whether or not you decide to show how many are available or show low stock quantities, a simple, “In Stock”, can be the most helpful thing when shopping online.

Here’s How to Show “In Stock”

  1. In your WordPress admin, navigate to Appearance > Editor.
  2. Click functions.php on the right.
  3. Go to the bottom of the file and paste the following code then save.

Is Your Product In Stock?

woocommerce-show-in-stock-status

Let me know if this worked for you or if you found another way how to do this.

Tags

6 comments

  • THANKS. THIS IS A GREAT SNIPPET! I just used it and it works =) thanks again!

  • I get
    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/mysite/public_html/sfdemo/wp-content/themes/sfdemo/functions.php on line 62

    Sadly not working :-/

  • Can I have this feature for variable products to?
    I wish to have “Availability : In Stock” by default (my varible product will only have products in stock dropdown choices)
    I tried this but not working on products with variations

  • Can I do this with multilingual site?

  • For proper translation handling you need to match the string to the WooCommerce original and write ‘In stock’, with a lowercase ‘s’, like so:

  • For proper translation handling you need to match the string to the WooCommerce original and write ‘In stock’, with a lowercase ‘s’, like so:

Leave a Reply

Your email address will not be published.

top