I am working on a project inhouse and came across a little problem. My store has 2 configurable attributes, color & size. If a product is Out of stock, the Add To Cart button hides once both of the Attributes (Colors & Sizes) are selected.
My objective:
I want to hide the Add-To-Cart button as soon as the Color is selected, only if ALL the sizes of this particular color is Out of stock.