Website Building » WooCommerce » How Do I Change the Out of Stock Text in WooCommerce?

How Do I Change the Out of Stock Text in WooCommerce?

Last updated on October 1, 2022 @ 11:33 pm

If you have a WooCommerce store, you’ve probably noticed the “Out of Stock” text that appears on products that are out of stock. While this text is useful in letting customers know that a product is unavailable, you may want to change it to something else, such as “Sold Out” or “Temporarily Out of Stock”.

PRO TIP: If you are not familiar with code or are not comfortable working with code, we recommend that you seek help from a developer or designer to make these changes for you. Making changes to your WooCommerce store’s code can be risky and could break your site if not done correctly.

Changing the “Out of Stock” text in WooCommerce is actually very easy to do. Just follow these simple steps:

  1. Log into your WordPress admin panel and go to WooCommerce > Settings. On the General tab, scroll down to the “Out of Stock Visibility” section and select the “Hide out of stock items from the catalog” option.
  2. Now go to Appearance > Editor. On the right hand side, under “Templates”, select “Cart.php”.

    This will open up the template file in the editor.

  3. Find the line of code that says: . Directly below it, add this line of code:
  4. . Save your changes.

And that’s it! The next time a product goes out of stock on your WooCommerce store, it will say “Sold Out” instead of “Out of Stock”.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.