Magento for B2B Commerce, 2.2.x
Stock Message Scenarios

You can use a combination of configuration settings to control stock availability messages on product pages and in listings of products on catalog pages.

Grouped Product with “Out of Stock” Message
Product Page Stock Messages
Catalog Page Stock Messages

“Out of Stock” Message on Category Page