Open dparker1005 opened 5 years ago
Also code needs to be updated in pmprosm_pmpro_after_checkout()
to generate usernames, passwords, and to ignore emails if those options are hidden.
These attributes still appear on the Add Ons page, perhaps they should be removed until fixed.
The JS that generates the box to fill in new user information does not account for $pmprosm_values['children_hide_email'] or $pmprosm_values['children_hide_password'].
See the code that generates this block here in the
<script>
ofpmprosm_pmpro_checkout_boxes()
: https://github.com/strangerstudios/pmpro-sponsored-members/blob/2d9612ad4422d1f078f5dd704273b3f4b9b16f38/pmpro-sponsored-members.php#L1131Similarly, these values (along with $pmprosm_values['children_hide_username']) are not checked when the form is submitted, so checkout complains when any of these values are hidden since that field is empty.
See the code that generates an error here in
pmprosm_pmpro_registration_checks_sponsored_accounts()
: https://github.com/strangerstudios/pmpro-sponsored-members/blob/2d9612ad4422d1f078f5dd704273b3f4b9b16f38/pmpro-sponsored-members.php#L1516