Couldn't find this is in the issue queue.

I have a product type that has 3 select options - size, length, and weight.
On the product display, I see all select boxes.

If I start from the bottom select box and select an option for each attribute, there are no issues.
However, if I start from the top, select an option, then select an option for the second attribute, the first attribute is reset to the default. The same goes if I set the 3 select box last. I know the error is somewhere down in commerce_cart_add_to_cart_form_attributes_refresh() but I can't follow everything that's happening to figure out how to fix this issue.

Comments

j_ten_man’s picture

I meant to say that the error is in commerce_cart_add_to_cart_form() and has to do with how unchanged_attributes and changed_attributes are being calculated.

nate.dame’s picture

subscribing

amateescu’s picture