• Resolved ali.k

    (@alikamali1988)


    Hi my friends
    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

    • This topic was modified 4 years, 2 months ago by ali.k.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Prin a11n

    (@prin_settasatian)

    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.

    Plugin Support Paulo P – a11n

    (@paulostp)

    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

    Mirko P.

    (@rainfallnixfig)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘problem with Woocommerce variable’ is closed to new replies.