Since the default option text now uses what is set in POST if it's set, dependent options are not always updated to the correct defaults when moving back and forth across options eg:
I get to the page and here are the options (*=selected)
2006*
2007
2008
Dodge*
GMC
Ram 1500*
Let's say I have a 2007 something or another, so I choose 2007, now we have:
2006
2007*
2008
Chevrolet*
Dodge
GMC
Silverado*
The problem arises when I decide I want to select something back in 2006 instead...I get this:
2006*
2007
2008
Dodge*
GMC
Silverado*
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | uc_dependent_attributes-635090_2.patch | 5.3 KB | jantoine |
| #1 | uc_dependent_attributes-635090.patch | 5.07 KB | jantoine |
Comments
Comment #1
jantoine commentedjpstrikesback,
Try this patch with the latest patch from this uc_aac thread: #629416: Dropdowns revert to default state after selection
Cheers,
Antoine
Comment #2
jpstrikesback commentedInteresting changes:
- The Last Select Doesn't filter until you choose something from it (like if you choose something that shouldn't be in there it updates to the proper default, but not until then)
- The behavior where going back and forth across options doesn't rebuild options that have been set once is still in effect.
- I've also seen something 2 times but I cannot replicate it and that is when you've gone back and forth over options and arrive at something you want and click add to cart - once in a while it will put 2 items in the cart...weird eh, again I can't replicate now, and it may have been hanging around in POST while I patched the module??
Comment #3
jantoine commentedjpstrikesback,
This was an ordering issue with the attributes when generating all possible combos and then filtering. Attached is a patch that uses the ordering of the attributes from the form, not the ordering in the database table.
Cheers,
Antoine
Comment #4
jpstrikesback commentedHey Antoine,
Is this patch against the last patch or the original commit?
Cheers,
Jon
Comment #5
jantoine commentedHey jpstrikesback,
Patches are always against the code in the repository, never against other patches, unless those patches have been committed, in which case they would be in the repository. Hope that makes sense.
Cheers,
Antoine
Comment #6
jantoine commentedPatch from #3 committed.
Cheers,
Antoine