I've set up a Visual swatch for sizes S, M, L. When a size is sold out I want Magento to display the sold out size with a red cross mark instead of hiding that size option.


Please check this module available for free.


  • Also this would help Stores > Configuration > Catalog > Inventory > Display Out Of Stock Products (Y/N) select Yes and save.
    – hasan khan
    Mar 4 '20 at 11:08
  • @hasankhan, yes exactly, you should set out of stock to display as Yes Mar 4 '20 at 11:10

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.