I noticed on a free item with variations that ALL variations show even if something is not actually available (0 stock or discontinued status). Is there a way to filter out the known “unavailable” products? I see this both with out of stock items and I use this popular paid plugin for discontinued items:
https://barn2.com/wordpress-plugins/woocommerce-discontinued-products/
It just adds another “status” like out of stock but labels it discontinued.
I have a staging site available to examine.
It does through these errors:
Out of stock: Sorry, we do not have enough “Oberheim Flag Tee” in stock (0 in stock). Please review your selection.
Discontinued: Sorry, we do not have enough “Oberheim Flag Tee” in stock ( in stock). Please review your selection.
The second message is just odd as I am guessing it is due to the discontinued product one, but still a filter to remove the unavailable items would seem better. Of course as a work around I can only present the individual items that are not discontinued since the item is going end of life, but was curious for simply out of stock it’s a second click for the user to change their selection once they get the error.