cancel
Showing results for 
Search instead for 
Did you mean: 

Replace 'In Stock' message with custom message for back orders

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?

1 REPLY 1

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!