I hope someone can help me because I'm rather tired of hacking away at this, trying to come up with a solution.
What I am trying to do is apply a theme to uc_product_add_to_cart; specifically, I need to control the placement of attributes in a node. I know there is a theme_uc_product_add_to_cart that I can easily override, but the problem is that a $node reference is passed into the theme function rather than a $form reference. In the default implementation, the theme function pulls the default rendering from drupal_get_form(). I can't seem to find a way to get in between hook_form _alter - which I have implemented with no trouble - and the rendering of the output for the form. Using hook_theme doesn't work because the form_id is different every time. I also tried setting $form['#theme'] in hook_form_alter, but that didn't work either.
I hope this makes sense. Does anyone have any ideas? I would really appreciate the help.
MK
