3

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

becomes

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

Help appreciated.

3

1 Answer 1

2

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)

3
  • 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, 2020 at 14:14
  • Can you tell what are the changes to be made in that module? Jun 23, 2020 at 15:47
  • I installed that module but it is not showing any labels for out of stock child products. Jun 23, 2020 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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