- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2021
02:47 AM
10-20-2021
02:47 AM
Replace 'In Stock' message with custom message for back orders
I have back orders enabled on my site.
I want to replace the 'In Stock' message with a message saying 'To Order By Request (5+ days)' on products for which there are zero or less stock on the product list and product details pages.
Is there an easy way to do this?
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021
03:21 AM
10-21-2021
03:21 AM
Re: Replace 'In Stock' message with custom message for back orders
Hello @skinnybloke,
Hope you are doing well!
You can easily change it. For that, you need to check below location to find your text message,
vendor/magento/module-catalog-inventory/Model/StockStateProvider.php at line no. 197
Translation Message:
vendor/magento/module-catalog-inventory/i18n/en_US.csv
I wish this will help you.
If not, feel free to contact us.
Worked?
Accept it as a solution and click KUDOS.
Thank you!