Support » Plugin: Paid Memberships Pro » Billing form name not showing

  • Resolved rakesh1974

    (@rakesh1974)


    Hi,
    Once a member has logged in and in profile, they have entered and saved a first name and last name, while changing the plan both these fields are not showing the data, they are empty & asking the user to add again… Email-id is showing properly as entered before but we need names also to show…

    Screenshot: https://snipboard.io/YJV5k7.jpg
    1) please let me know how to show these two name fields automatically…
    2) Similarly the phone number field also
    3) We also want Address fields to be required

    thanks in advance

Viewing 1 replies (of 1 total)
  • Plugin Contributor David Parker

    (@dlparker1005)

    Hi @rakesh1974,

    Since the person whose card is being used to pay the registration fee is not always the same person who owns the account, by default, we do not pre-fill billing information (name, telephone, etc) with data from the WordPress user itself. Once the user completes a checkout with PMPro, however, the billing information that they enter during that checkout should be remembered for future checkouts.

    If you would like to pre-fill the PMPro billing fields with data from the WordPress user itself, the best way to do this would probably be to hook into when the WordPress first name, last name, and phone fields are saved, and update the PMPro billing fields as well (pmpro_bfirstname, pmpro_blastname and pmpro_bphone in the usermeta table of your database). This would require custom code to implement. If you would like more guidance or hands on help implementing this solution with Paid Memberships Pro, please sign up at http://www.paidmembershipspro.com/pricing.

    As for requiring address fields, have a code recipe here which should ensure that all address fields are required on checkout:
    https://gist.github.com/kimcoleman/8a04009bc686e7efd0c0bb9f913b73f1

Viewing 1 replies (of 1 total)
  • The topic ‘Billing form name not showing’ is closed to new replies.