• Resolved dmokaren

    (@dmokaren)


    Hey everyone –
    When a member wants to renew, (s)he goes to the membership page and selects the renewal level. The next page gathers user info, but if one is a member, there’s an option to Log In to the User Account. If one logs in, the page shows the user is logged into the site in brown colored text at the bottom of the level selected stating, “You are logged in as <username>. If you’d like to use a different account for this membeship, log out now..” The PayPal payment button shows up below the box.

    When the payment button is selected, a red error appears at the top of the levels page “The First Name, Last Name, Address 1, City, State, and Zip fields are required.”

    Any idea what hook/code is messed up?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi there,

    Thank you for using Paid Memberships Pro.

    How are those billing fields created/displayed?

    It’s possible that these fields are empty and added underneath the section which is hidden by default for logged-in users.

    You may always show these fields with the following hook, by returning false – https://www.paidmembershipspro.com/hook/pmpro_skip_account_fields/

    Thread Starter dmokaren

    (@dmokaren)

    I have a pmpro customization to get the info which I had some issues with on this forum and got it fixed. It’s a customization to gather name, address, zip, email info which shows up in the members list, and added to the dB. Somehow, when the user logs in to renew, the user gets logged in to The site, but the name/address info doesn’t transfer to the renewing member address fields. When going to the next step (payment) the app craps out as the info is not transferred to the member address fields.

    This used to work, but thru iterations has gotten corrupted.

    Plugin Author Andrew Lima

    (@andrewza)

    Would you mind sharing your customizations code in a gist (gist.github.com)? If you don’t want to publicly share this, please can you reach out on https://www.paidmembershipspro.com instead ??

    I’d like to look into this closer for you.

    Thread Starter dmokaren

    (@dmokaren)

    Hi here’s the customization code. Jason helped me to work this up. It collects new members’ name address, city, state, zip info that shows in the members list. The issue is: if an existing user wants to renew, and while checking out he logs in with his user and pass as suggested in the checkout process so as NOT to create a new user, the info doesn’t migrate to fill in the form, but goes on to show the user is logged in. After selecting Pay with PayPal, there’s an error stating address, city, zip is missing.

    Would setting up a test user name and pass help you?

    `<?php
    /*
    Plugin Name: PMPro Customizations
    Plugin URI: https://www.paidmembershipspro.com/wp/pmpro-customizations/
    Description: Customizations for Paid Memberships Pro
    Version: .1
    Author: Stranger Studios
    Author URI: https://www.strangerstudios.com
    */

    function my_pmpro_fields()
    {
    $fields = array();
    $fields[] = new PMProRH_Field(“first_name”, “text”, array(“size”=>40, “label”=>”First Name”, “profile”=>true, “required”=>true));
    $fields[] = new PMProRH_Field(“last_name”, “text”, array(“size”=>40, “label”=>”Last Name”, “profile”=>true, “required”=>true));
    $fields[] = new PMProRH_Field(“pmpro_baddress1”, “text”, array(“size”=>40, “label”=>”Address 1”, “profile”=>true, “required”=>true));
    $fields[] = new PMProRH_Field(“pmpro_bcity”, “text”, array(“size”=>40, “label”=>”City”, “profile”=>true, “required”=>true));
    $fields[] = new PMProRH_Field(“pmpro_bstate”, “text”, array(“size”=>40, “label”=>”State”, “profile”=>true, “required”=>true));
    $fields[] = new PMProRH_Field(“pmpro_bzipcode”, “text”, array(“size”=>40, “label”=>”Zip”, “profile”=>true, “required”=>true));

    foreach($fields as $field)
    pmprorh_add_registration_field(“checkout_boxes”, $field);
    }
    add_action(“init”, “my_pmpro_fields”);
    ?>’

    Thread Starter dmokaren

    (@dmokaren)

    sorry I don’t know how to use (gist.github.com) nor am I a member.

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for sharing the code, your fields are required. I tried to recreate this issue but I am unable to do so, are the fields visible to logged-in users when they are checking out?

    Thread Starter dmokaren

    (@dmokaren)

    The page wher new members provide their information is where the user can log in. Once user logs in, fields disappear, but the page shows they are logged in and the Pay with PayPal appears.

    Plugin Author Andrew Lima

    (@andrewza)

    I don’t see why this should be hidden by default when logging-in as it’s added under ‘checkout_boxes’ and this is always shown on checkout (even for logged-in members/users).

    Alternatively, you may set the ‘required’ option to false if the user is logged-in. This will require a bit of changes to your code to achieve this.

    Please can you open a support ticket on https://www.paidmembershipspro.com to look into this further.

    Thread Starter dmokaren

    (@dmokaren)

    The issue seems to be that the user info is not migrated to the fields, but it would seem that if a user logs in, PMPRO has access to the user info. So, shouldn’t the system just update their membership for another year?

    Plugin Author Andrew Lima

    (@andrewza)

    It’s possible that these fields were added after the user existed and they have not updated their WordPress profile and this is why it hasn’t carried over.

    I will be trying to replicate this issue on my end.

    Thread Starter dmokaren

    (@dmokaren)

    No. I don’t believe that occurred. I used this script for years, then somehow I deleted it from the website during an FTP compnnection. I realized that I deleted it and inadvertently replaced with a different script, which didn’t put the address info in. Three members joined during that time. When I saw no addresses, I put in a question to this forum, then realized I had the wrong script, looked back thru my emails, found it and replaced the script in pmpro-customizations. That issue was 3 months/2 Weeks ago.

    Thread Starter dmokaren

    (@dmokaren)

    I’ve been rereading your posts and thinking about this issue. Again, Jason helped me to gather these fields to show up in the MembersList and in the user profile.
    I’m wondering where in the process the custom script would be called when a member logs in to renew membership. Logging in should migrate their info (city, state, zip). Would there need to be a call to the customization in the Checkout.php script? We didn’t modify that at all, but there’s got to be a simple solution, wouldn’t you think?

    Thank you very much for your help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Renewing Members Login problems’ is closed to new replies.