How to change ‘Out of Stock’ text in Woocommerce


woocommerceIf you are using Woocommere to sell service or anything that is not physical then you might want to change the ‘Out of Stock’ text to ‘Sold out’ or some other more meaningful words. Before i do the changes, i thought changing the ‘out of stock’ text is just a easy peasy work but end up cannot find the template. Then i only realise it might be control by a hook. After going thru the woocommerce hook documentation, and i found the answer there!

woocommerce change out of stock text

To change ‘Out of Stock’ text in Woocommerce, follow the steps below:-

Advertisements

  • First open your theme functions.php file, copy and paste the code below at the bottom of your file.

  • Now refresh your Woocommerce product page and you will no longer see the ‘Out of stock’ text. Instead you will see ‘Sold out’

happy selling!

Related posts:






Share this with your friends:-

Leave a Reply