Missing dropdown attribute values in variable product
-
With the Storefront theme, all plugins deactivated except for WooCommerce, and functions.php empty, I created a test variable product with attribute “Medium” and values “Canvas” and “Poster”, and attribute “Size” with values c1, c2, p1, p2, p3 (canvas sizes and poster sizes respectively), and I generated the variations, setting a stock number and price for all.
The product displays correctly, the dropdowns show all values of the two attributes, whether I set default values for the two attributes or not.
Now, if a delete the non existing variations (canvases with poster sizes and posters with canvas sizes), leaving only Canvas-c1, Canvas-c2, Poster-p1, Poster-p2, Poster-p3), then:
If I do not set a default value for the attributes, the product displays correctly, the dropdowns show all values of the two attributes.
If I set default values Canvas and c1, then the “Medium” dropdown shows “Canvas” and when clicked shows “Choose an option” and “Canvas” without the Poster option (the Size dropdown correctly shows c1, c2). So there is no way to see the Poster variations.
(Additionally, if I set three Sizes, s1, s2, s3, and and only keep the variations Canvas-s1, Canvas-s2, Poster-s1, Poster-s2, Poster-s3, the Medium dropdown again shows all values. The problem appears when there is no overlap between the existing combinations of Medium and Size.)
Is this intentional behavior?
- You must be logged in to reply to this topic.