There are various ways to handle stock within WooCommerce. When your products are out of stock and you do not allow backorders for the product, WooCommerce will show a ‘Out of stock’ type of message. Here’s an example with the Storefront theme.

If you sell custom, unique or otherwise limited stock you may want to change the ‘Out of stock’ message to be more descriptive. When a product says ‘Out of stock’ it may indicate to customers it may return in stock over time, while for those unique or custom items this will not be the case.

For those kinds of products a ‘Sold’ or ‘Sold out’ message will more clearly communicate to customers that it will not return back in stock. To change the default ‘Out of stock’ messaging a small code snippet is required.

Within the code snippet you are able to change the text to whatever you’d like it to be. The result is as shown below;

About the author: Jeroen Sormani is actively building WordPress, WooCommerce and Easy Digital Downloads plugins. Slightly obsessed by writing high quality code.
Follow Jeroen on Twitter

Leave a Reply

Your email address will not be published. Required fields are marked *