I am attempting to alter the product ID associated with a user after they submit the signup form. The decision is based on what I believe is a custom field (forgive me for being a little slow--I inherited this site from a previous developer who set everything up). I have the basic logic in place: PHP: if ($vars['i_am_a'] == "person with diabetes" || $vars['i_am_a'] == "parent/caregiver of a person with diabetes") { $vars['product_id'] = 3; } else if ($vars['i_am_a'] == "healthcare professional" || $vars['i_am_a'] == "member of industry" || $vars['i_am_a'] == "other") { $vars['product_id'] = 6; } My question is where to place this logic in the flow of signup.php...I currently have it placed at the very bottom above show_payment_form(); and while I can confirm my logic is working successfully, the code doesn't change the product ID. This is a free product if that helps any. It appears the original code has been modified quite a bit, but any direction on the flow of events after a user submits the signup form would be helpful.
You can use validate_signup_form hook for this. Please have a look: http://manual.amember.com/Using_site.inc.php_and_hooks#validate_signup_form.28.26.24vars.29