Closed (duplicate)
Project:
Commerce Core
Version:
7.x-1.2
Component:
User experience
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2012 at 23:35 UTC
Updated:
23 Apr 2012 at 05:53 UTC
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
Comment #1
j_ten_man commentedI 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.
Comment #2
nate.dame commentedsubscribing
Comment #3
amateescu commentedDuplicate of #1286244: Allow dependent attributes to preserve their default options if a matching product exists on an Add to Cart form.