Show or hide a button in woocommerce product variations for a specific attribute values

Question

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!

0
rocky123 2 months 0 Answers 12 views 0

Leave an answer