The Product element allows you to link other products in Woocommerce as an option.
When the linked product is out-of-stock, you can still select it as an option.
When the user does this, and proceeds to the cart or checkout, only then are they given a message that the selected option is unavailable. This isn't a great user experience, as it then means the user needs to re-edit the cart item before they can proceed.
If there are multiple product options unavailable, they could be forced to go through this process multiple times.
Instead, they should not be able to select the out-of-stock product as an option in the first place, as it should simply be greyed-out and unselectable.
Cookies are important to the proper functioning of our sites. To improve your experience we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests.
Click Agree and Proceed to accept cookies and go directly to the site or click on More Information to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site. Selecting "Ask me later" will enable cookies for the next 24 hours.