S. A. Malik
S. A. Malik

Reputation: 3655

Dependent Product Variations in Woocommerce

I am implementing dependent product variations in woocommerce. The problem is that the product has to sizes it is available in Large and Small. The Large size has colors available but the small size of product has a transparent look.

I have added two attributes to the product Size and Color. Now what i want to happen is that when the user selects Large size colors should show up but if he chooses small size the color options select should go blank.

Is there any other way then using a no color options in colors select for Small size?

Upvotes: 0

Views: 4338

Answers (1)

styks
styks

Reputation: 3441

Basically you just need to remove the "small" variations with color.

  1. Make sure your color options are ordered after your size options in the attributes section of the product. Make sure you save.
  2. In your color options group create a transparent color.
  3. Remove all variations that include Small and a color except for small and transparent
  4. If a user chooses small, then they will only have an option for transparent

I just did the exact same thing on a site.

Upvotes: 2

Related Questions