Playing with the module a lot lately, neat thing!

Simple question/idea. Why would one stop with Javascript/Ajax?

If we would:
1. Place the calculation part of _uc_aac_calculate() in a separate function.
2. Use the results of the new function to adjust the numbers in the node by using hook_nodeapi
3. Add a submit button which reloads the node and hides when Javascript is enabled
4. Voila; "Ubercart Ajax Attribute Calculations"

Any idea if this would work? Am I missing something?

Comments

cyu’s picture

Status: Active » Closed (won't fix)

Yeah, no reason that couldn't work...but I don't see much use for that functionality, especially to add it in as extra code in this module.

Reloading the page with the price by pressing a new "Calculate" button doesn't seem much different than the out of the box functionality of having them add it to the cart to see the price.