How to change "Out of stock" to another word in Quantity column?

Created by Jane D, Modified on Tue, 10 Mar, 2020 at 1:40 PM by Jane D

QUESTION:

The module is working well, but can you please tell me how to change the word "Out of stock" to another word like "Coming Soon"  in the Qty column on the product page?
I looked in template path hints but going far into the code and was lost.  Can you please tell me where that word is echoed down in the code?  Thanks.


ANSWER:

To change "Out of Stock" to other words, please find in the file: Bss\ConfigurableProductWholesale\Model\ConfigurableData.php,
function getStatus($stock, $productChild, $childProductId, $websiteId)

and find line 411 then change "Out of Stock" to the word you want.


If there is something else that we could help, please feel free to leave us a message. We'd be happy to support.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article