'Woocommerce variable

I created 2 Attributes in WooCommerce.(sale & color) The sales Attribute consists of 2 variations. (single sale & wholesale) I want the user who chose the (single sale) variable to be able to choose the colors.(This part has no problem) This is the problem > I want when the user selects a (wholesale), Disable the color variable and the user can not choose the color scheme. I put the site link and screenshots below. Thanks screenshot product single page



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source