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

Created by Support Agent, Modified on Wed, 8 Apr at 11:11 AM by Support Agent

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.


Who are we?


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Explore our extensions: https://bsscommerce.com/magento-2-extensions.html 


Please refer our top tier extensions below:

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