I'd like to be able to disable checkout panes based on payment method chosen.
For example, if a user chooses to pay by check (payment pack), I would get rid of the billing fieldset and allow them to checkout without having to fill that information in.
I've tried adding some callbacks to try to alter the checkout form via ajax, but the checkout form doesn't seem to be cached so I can't grab it from there to alter. If I force the checkout form to cache I get strange behavior on an order cancel. And I don't think I should be doing that anyway.
I've also been trying to just hide the fields and then hi-jack the validate and submit handlers for the checkout form to allow the FAPI to ignore the required fields in the billing pane.
None of these have worked. Has anyone ever done anything like this?
Any help is greatly appreciated.
Cheers!
-nash
