Hi there,
I understand you would like to let the customer choose the color when it’s a single sale, and not let them choose the color when it’s wholesale.
Here is one way you can achieve this:
1. In Attributes, create two attributes: a. type of sale (single and wholesale), b. color (red, green, blue, cannot choose color, etc. [feel free to add any color you want]).

2. In Variations, add a single variation for every color except cannot choose color.

3. In Variations, add a wholesale variation with only one option, cannot choose color.

This way, the customer can select any color when they choose single and cannot select the color when they choose wholesale.


You can read more here: https://woocommerce.com/document/variable-product/.
Let me know if you need further help.
Hello @alikamali1988,
@prin_settasatian has suggested a good solution, but in case you’d like the “color” dropdown to disappear when “wholesale” is chosen, that will require custom code or a plugin.
For example, this plugin will allow you to show/hide fields based on customer selections: https://woocommerce.com/products/extra-custom-product-options-for-woocommerce/
Hope this helps!
Thread Starter
ali.k
(@alikamali1988)
Thank you so much @prin_settasatian
thank you so much @paulostp
your solutions very help me
Great! It sounds those solutions can help achieve your desired result.
I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
Cheers.