Is there a way to set the variable price based on a cck field?

Scenario: I have a site that keeps track of membership dues and each member has a content_profile node that had a "balance due" cck field which is the amount they owe; the balances vary per member. So I'm trying to plug that balance due into the variable price field.

Note: I've also tried to hook_form_alter on 'uc_product_add_to_cart_form_[form-id]", but I can't effect $form['varprice']['#default_value'] or $form['varprice']['#value'] values.

Comments

pixelsticks’s picture

Did you ever find a fix for this? I've tried similar solutions, but to no avail. Any guidance (especially if you got it working on 7.x) would be awesome.

Thanks!