Events Made Easy › Forums › Bug fixed or feature request implemented › Phone number not in people’s data
- This topic has 14 replies, 2 voices, and was last updated 2 years ago by Franky.
-
AuthorPosts
-
Wed 16 Nov 2022 at 18:59 #64752AnonymousInactive
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
#_SUBMITAll 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
Wed 16 Nov 2022 at 19:43 #64753FrankyKeymasterI 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)?
Wed 16 Nov 2022 at 21:26 #64754AnonymousInactiveHi Franky,
not that I’m aware of. It’s really odd, as it looks like everything is normal. ;-(
But the issue still remains.Wed 16 Nov 2022 at 22:47 #64755FrankyKeymasterWell, can you reproduce this in a test setup and give me access to that? So I can see what is going on?
Thu 17 Nov 2022 at 10:24 #64756AnonymousInactiveHi,
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?
Thu 17 Nov 2022 at 11:04 #64757FrankyKeymasterYou can send it to franky@e-dynamics.be
Thu 17 Nov 2022 at 23:47 #64758FrankyKeymasterI didn’t receive any email, so I assume it is solved.
Fri 18 Nov 2022 at 16:17 #64759AnonymousInactiveNot yet, was busy doing other things. I sent you een invite!
Fri 18 Nov 2022 at 16:28 #64760FrankyKeymasterOk, 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 locallyFri 18 Nov 2022 at 16:47 #64761FrankyKeymasterOk, 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).
Fri 18 Nov 2022 at 17:01 #64762AnonymousInactiveHi, 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?
Fri 18 Nov 2022 at 17:24 #64763FrankyKeymasterincognito 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 tryFri 18 Nov 2022 at 19:44 #64764FrankyKeymasterOk, 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 personNow 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?
Sat 19 Nov 2022 at 16:30 #64773AnonymousInactiveYes, it works! You are a genius! Thank you!
Sat 19 Nov 2022 at 16:34 #64774FrankyKeymasterThe 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) 🙂 -
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.