0

How to hide configurable product options values which are disabled in drop-down or in swatches. As in the image red marked are disabled and not selectable.

enter image description here

2 Answers 2

0

You can simply hide usging css or jQuery if they have disabled.

select option:disabled {
    display:none;
}

or

select option[disabled="disabled"]
{ 
    display:none;
}

using jquery

$(function() {       
      $('option[disabled="disabled"]').hide(); //then hide them                
});
1
  • Thanks, I know we can do it on the front end, but I am finding to hide it through the backend so that it can't be fetched on the front end.
    – ishaq
    Jun 12, 2023 at 18:01
0

Please update your store configuration like the below and run reindex command.

enter image description here

5
  • it is already set to no of out of stock products options still not working
    – ishaq
    Jun 12, 2023 at 17:34
  • It's Means Your product is disabled in admin?
    – Msquare
    Jun 13, 2023 at 6:46
  • Please check this issue : github.com/magento/inventory/issues/3296
    – Msquare
    Jun 13, 2023 at 6:52
  • All child products are enabled and in stock, but there is no one configurable attribute I am using, there are multiple attributes and some options are disabled and same options becomes enabled when i choose different option from other attribute.
    – ishaq
    Jun 14, 2023 at 7:06
  • Can you explain more about it? What do you want to achieve?
    – Msquare
    Jun 14, 2023 at 7:25

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.