woocommerce offtopic – Select Child Attributes Based on Parent

Question

I have a variable product with three attribute options:

  1. Product Type (3 total options)
  2. Product Color (1 or 2 colors per Product Type, 5 total)
  3. Product Engine (Normal or Pro)

PROBLEM:
The variable product’s images does not appear until the users chooses a Product Type, and then Product Color because each variation has a unique image.

Here is a demo video I made to make the problem easier to understand:
https://www.dropbox.com/s/bz3kvr4cl7fwygq/force-attribute-selection.mp4?dl=0

QUESTION:
What is the best way to always force the first enabled option for Product Color to be selected when each Product Type is chosen?

I think the solution may be similar to this questions:
Remove “Choose An Option” on Product Variation & Auto Select Instead

Screen grabs

enter image description here
enter image description here
enter image description here

(P.S. – It is not clear if this is the correct place to post such a question, it’s confusing as my first post was rejected.)

0
Jono 2 weeks 2022-11-17T13:14:35-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse