This is an offshoot of this: http://drupal.org/node/855370
Drupal 6.17, Ubercart 6.x-2.3, Attribute Ajax Calculation 6.x-2.x-dev, Attribute, Garland Theme and nothing else whatsover.
Have a product with a dropdown attribute with 4 options.
This is followed by a checkbox attribute with 3 options.
Without AAC it works as expected.
When AAC is enabled, if no checkboxes are selected, you can manipulate the dropdown and the price changes.
If you select one or more checkboxes, the price does not update with the value of the checkbox(s) and each click of the checkbox generates many multiples of this warning in my browsers error console.
Warning: reference to undefined property D.cache[a][d]
Source File: http://intra.3xlogic.com/misc/jquery.js?B
Line: 13The warning may or may not have anything to do with the problem, but the problem is that the checkboxes do not work with AAC if a dropdown attribute is followed by a checkbox attribute on the same page. I did not try other combinations.
Lastly, when a checkbox is checked, you can change the dropdown but the price does not update. Uncheck the checkboxes and now changes to the dropdown work again and update the price. You can do this over and over and the results are exactly the same.
Comments
Comment #1
cyu commentedAck, I see it now. In my testing I didn't give note to "dropdown attribute is followed by a checkbox attribute" and it appears all my test cases worked because I had the checkboxes above the selects. Thanks for sticking with this, I'll see what I can figure out.
Comment #2
cyu commentedI was dissecting drupal_get_form, drupal_prepare_form, form caching....
Fix is here: http://drupalcode.org/viewvc/drupal/contributions/modules/uc_aac/uc_aac....
Should have paid more attention to your initial report of the error at line 92.
Comment #3
dnieweg commentedcYu! Thanks so much for looking into this. I also should have taken your initial advice as well for disabling all modules. I will give the fix a try here as soon as I have a moment.
Thanks again!!
Comment #4
dnieweg commentedWorks perfectly! Now I can use checkboxes. Thank you.
I want to also let everyone know that at this moment AAC works with just about everything out there running, including all the modules I have enabled below. I want to bring this up because I am running a lot of the new dev modules (which create an amazing site by the way!) and if you have trouble with AAC they will of course be suspect.
Thanks again cYu!
Price Per Role 6.x-1.x-dev
Conditional Actions 6.x-2.3
Product Kit 6.x-2.3
Views 6.x-3.x-dev (including submodules)
Chaos Tools Suite 6.x-1.6 (including submods)
Dialog API 6.x-1.x-dev
jQuery UI 6.x-1.3 (1.7.3)
jQuery Update (1.3.2)
jQuery Menu 6.x-3.3
Content Taxonomy 6.x-1.x-dev (inc submods)
Taxonomy Manager 6.x-2.2
Lightbox2 6.x-1.x-dev
CKEditor 6.x-1.x-dev
CKEditor SWF 6.x-2.1
Modal Frame API 6.x-1.7 (all submods including the 6.x-1.0 items)
Hierarchical Select 6.x-3.3 (and all submods)
CCK 6.x-2.7 and all the stuff like Filefield, etc..
Theme stuff
Acquia Slate 6.x-3.0-beta1
Fusion Core 6.x-1.0
Skinr 6.x-2.x-dev
Skinr UI 6.x-2.x-dev
Comment #6
ruuizz commentedHi, has the fix mentioned on #2 been added to the new dev version? Link is going nowhere and I am looking at applying the module for products that only have checkboxes on each attribute.
Thank you for any info you can provide.
Comment #7
cyu commentedI think that link above broke when the move from cvs to git was made. The fix was applied long ago, though.