There are some related messages but not precisely this.

Is there an method to - show out of stock products (for a configurable product) - add a label "out of stock"

So a drop down with

  • XS
  • S
  • M
  • L


  • XS
  • S
  • M
  • L - out of stock

Help appreciated.


We can use Magento 2 plug-ins to add out of stock labels to child options.

See sample code here: https://github.com/Jitheesh/Magento2-configurable

(This is working fine for me on Magento 2.2.2 version)

| improve this answer | |
  • Works on Magento 2.3.4 as well. Adjustments are needed. You may have multiple colors available and it will say Out of Stock, even though another color is available – elfling Mar 11 at 14:14
  • Can you tell what are the changes to be made in that module? – Kowsigan Atsayam Jun 23 at 15:47
  • I installed that module but it is not showing any labels for out of stock child products. – Kowsigan Atsayam Jun 23 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.