How to change “Out of Stock” Text in WooCommerce

Hanna Holmes: Does anyone know how to change the ‘out of stock’ text to something else? I just don’t think it looks very good.. we would prefer it to say something like ‘fully booked’ … Thanks ?

change-out-of-stock-text1-min

ANSWER

You just need to insert the following code into Functions.php (Appearance > Editor > functions.php)


I recommend you to insert via Code Snippets Plugin. It will safer and easier to manage the codes.

php-snippets1-min

php-snippets2-min

Then go to Snippets > Add New > Insert code

change-out-of-stock-text2-min

Then click Save changes and Activate

change-out-of-stock-text3-min

and result

change-out-of-stock-text4-min

If you have problems, don’t hesitate to send me. I will reply in 1-2 days.

Share this post:

Leave a Comment