Magento 2, how to change the the word `IN STOCK` in product description?

by Bong Channarith   Last Updated July 11, 2018 10:09 AM

Using Magento 2.2, Front-end, Product-Calalog. I want to rename the word IN STOCK to other word.

enter image description here

Answers 3

You can translate "IN STOCK" to "Your Text" by below translation file

Add "IN STOCK","Your Text" to below file


Run below commands to check text changes

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
Suresh Chikani
Suresh Chikani
July 11, 2018 09:29 AM

  • Override <magento_root>/vendor/magento/theme-frontend-luma/i18n/en_US.csv in /app/design/frontend folder and open the en_US.csv file.
  • Find the text you want to translate and change the translation.
  • If the text which you want to translate does not exist in the file, then write in the following format:


"text to translate","translated text"

For example, in your case write:

"In stock","Salable"
  • Refresh the Magento's cache and check the frontend.
Mohit Kumar Arora
Mohit Kumar Arora
July 11, 2018 09:29 AM

Method 1:

If you want to change this text only for product details page and for that section which you mentioned then you need to copy the following file to your theme:


You theme file location will be like below:


And update the text.

Method 2:

Create one one en_US.csv on your theme like below:


And add the translation text like "In stock","Salable"

Sukumar Gorai
Sukumar Gorai
July 11, 2018 09:36 AM

Related Questions

Grouping Product or Creating into a set

Updated September 12, 2017 04:09 AM