Events Made Easy Forums Bug fixed or feature request implemented Phone number not in people’s data

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #64752
    Anonymous
    Inactive

    Hi,

    I am using EME for several years now and still i discover new solutions.
    But… I don’t know how to solve this one.

    My booking form is as follows:

    <table class=’eme-rsvp-form’>
    <tr><th scope=’row’>Bedrijfsnaam*:</th><td>#_FIELD{bedrijfsnaam}</td></tr>
    <tr><th scope=’row’>Achternaam*:</th><td>#_LASTNAME</td></tr>
    <tr><th scope=’row’>Voornaam*:</th><td>#_FIRSTNAME</td></tr>
    <tr><th scope=’row’>E-Mail*:</th><td>#_EMAIL</td></tr>
    <tr><th scope=’row’>Telefoonnummer:</th><td>#_PHONE</td></tr>
    <tr><th scope=’row’>Website:</th><td>#_FIELD{website}</td></tr>
    <tr><th scope=’row’>Bezoekadres:</th><td>#_ADDRESS1</td></tr>
    <tr><th scope=’row’>Postcode</th><td>#_ZIP</td></tr>
    <tr><th scope=’row’>Stad</th><td>#_CITY</td></tr>
    <tr><th scope=’row’>Land</th><td>#_COUNTRY</td></tr>
    <tr><th scope=’row’>Beroep / functie*:</th><td>#_FIELD{beroep}</td></tr>
    <tr><th scope=’row’>anders, nl..:</th><td>#_FIELD{anders}</td></tr>
    <tr><th scope=’row’>Specialisme:</th><td>#_FIELD{specialisme}</td></tr>
    <tr><th scope=’row’>Ervaring:</th><td>#_FIELD{ervaring}</td></tr>
    <tr><th scope=’row’>Online consult mogelijk?</th><td>#_FIELD{Online_consult}</td></tr>
    </table>
    #_SEATS
    #_SUBMIT

    All data in the (custom) fields are stored properly in EME’s ‘Personen’ (People or persons in English version?) except for the phone number.
    However, in WP-users the phone number is stored in the EME-section as the phone number for an event contact person.

    As I want to reproduce the phone number in de attendees list, I need the phone number to be stored in the EME-user data. It works in other websites, but not in this one.
    Can you help? What am I overlooking?

    https://www.ihbvnieuw.nl/events/hulpverlenerslijst/

    Thanks already, Janine

    #64753
    Franky
    Keymaster

    I don’t see anything wrong in the form or the generated output. Also, it works as expected locally. So my best guess is: do you have some filters/hooks in place (in your theme)?

    #64754
    Anonymous
    Inactive

    Hi Franky,

    not that I’m aware of. It’s really odd, as it looks like everything is normal. ;-(
    But the issue still remains.

    #64755
    Franky
    Keymaster

    Well, can you reproduce this in a test setup and give me access to that? So I can see what is going on?

    #64756
    Anonymous
    Inactive

    Hi,

    this website as a whole is still in test phase, so I can give you direct access to it. Where do I send the mail to?

    #64757
    Franky
    Keymaster

    You can send it to franky@e-dynamics.be

    #64758
    Franky
    Keymaster

    I didn’t receive any email, so I assume it is solved.

    #64759
    Anonymous
    Inactive

    Not yet, was busy doing other things. I sent you een invite!

    #64760
    Franky
    Keymaster

    Ok, it seems to be related when doing a backend booking (maybe together with the option to create a WP account).
    Let me further test that locally

    #64761
    Franky
    Keymaster

    Ok, fixed in your setup. The real bug is fixed in this changeset in trunk:
    https://plugins.trac.wordpress.org/changeset/2820598/

    I released about 2,5 hours ago, so I won’t release again for now (I fixed it in the released version so new downloads will have the fix too).

    #64762
    Anonymous
    Inactive

    Hi, thanks for the update. I tested it in incognitomode, but still the phone number is not stored in the EME-persons data. What am I doing wrong?

    #64763
    Franky
    Keymaster

    incognito mode? You mean private mode in your browser? Then you tried it from the frontend, correct? Because that means you’re not logged in then …
    Let me try

    #64764
    Franky
    Keymaster

    Ok, found it. This was a hard one. I used to do this:
    – create wp user based on login name, email and password
    – then update that user with name
    – then set the user meta field “phone” for eme (called “eme_phone” in fact)
    – then link that user to the EME person

    Now the problem is, I also had a hook that fires when a profile is updated (so when someone changes their name in WP, it changes in EME too), and weirdly enough it fires when updating a user (logical) but only after the EME link was alread set, causing the phone to be emptied in the EME person.

    Solution to all this: I now create the wp user with all fields in one go 🙂
    See this changeset:
    https://plugins.trac.wordpress.org/changeset/2820688/

    I applied the fix to eme_functions.php to your setup too, can you check?

    #64773
    Anonymous
    Inactive

    Yes, it works! You are a genius! Thank you!

    #64774
    Franky
    Keymaster

    The latest version has that fix (and others in it).
    If you like it: I’m open for donations and please don’t forget to leave a review on WP (all optional of course) 🙂

Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top