Show or hide a button in woocommerce product variations for a specific attribute values
In Woocommerce, I’m trying to hide a button for variations with a specific selected value for one of the attributes. There are two variations with slugs (white and black).
I want to hide the button with CSS ID (#button1) when "white" is selected & want to show the button again if "black" is selected from the dropdown. If there are any possibilities then please any help will be appreciated Thank you!