we have a website that is running on Magento 2. This site has been enabled to show out of stock products. Below each out of stock product it displays 'out of stock' how can i change the wording of this to say 'currently out of stock'.
Thanks
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communitywe have a website that is running on Magento 2. This site has been enabled to show out of stock products. Below each out of stock product it displays 'out of stock' how can i change the wording of this to say 'currently out of stock'.
Thanks
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:
vendor/magento/module-catalog/view/frontend/templates/product/view/type/default.phtml
Your theme file location will be like below:
app/design/frontend/[Vendor]/[Theme]/Magento_Catalog/templates/product/view/type/default.phtml
And update the text.
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
If my answer helped you, you can accept the answer so it can help others also.
Create the en_US.csv
file if not exist in
app/design/frontend/[Vendor]/[Theme]/i18n/
And add the below content.
"Out of stock","Currently out of stock"
Clear the cache and check. This works for me, Check the below screenshots:
Product Page:
Category Page: