Events Made Easy › Forums › Bug fixed or feature request implemented › Wrong data in RSVP mail Custom Field
- This topic has 12 replies, 2 voices, and was last updated 2 years, 3 months ago by Anonymous.
-
AuthorPosts
-
Wed 7 Sep 2022 at 18:42 #64606AnonymousInactive
Hey Franky
I will try to be clear and understandable đ
Here is the RSVP Form:
<table class=’eme-rsvp-form’>
<tbody>
<tr>
<td>Nom de famille*:</td>
<td>#_LASTNAME</td>
<td>Prénom*:</td>
<td>#REQ_FIRSTNAME</td>
</tr>
<tr>
<td>E-Mail*:</td>
<td>#_EMAIL</td>
<td>Téléphone:*</td>
<td>#REQ_PHONE</td>
</tr>
<tr>
<td>Places*:</td>
<td>#_SEATS</td>
<td>Nom du chien*:</td>
<td>#REQ_FIELD{4}</td>
</tr>
<tr>
<td colspan=”4″> #_SUBMIT</td>
</tr>
</tbody>
</table>Here is the RSVP Mail Model
Cher #_PERSONFULLNAME,
Vous avez bien réservé #_RESPSEATS place(s) pour #_EVENTNAME,
Le #_STARTDATE{d/m/Y H:i} avec #_FIELD{4}Si vous avez un empĂȘchement merci d’annuler via ce lien Cliquez ici
Ou dans la rubrique “Mes rĂ©servations” sous le bouton “Compte” lorsque vous ĂȘtes connectĂ© au site.Ajoutez Ă votre calendrier: #_ICALLINK – Ajoutez Ă Google Calendar
Cordialement,
#_CONTACTPERSONThe problem is on the #_FIELD{4} (Dog name)
When the user change the #_FIELD{4} when booking (which is autorized), booking is correct but the mail sent to the user AND to the admin contains the old value of #_FIELD{4}
For Exemple Booking Data :
Nom de famille*: Dressage Club Picardie
Prénom*: Secrétariat
E-Mail*: xxxxx@dressagexxx.com
Téléphone:* +32XXXXXX
Places*: 1
Nom du chien*: Sasha – BrutusMail Data
Cher Secrétariat Dressage Club Picardie,
Vous avez bien réservé 1 place(s) pour CHIOTS,
Le 07/09/2022 17:30 avec TESTSi vous avez un empĂȘchement merci d’annuler via ce lien Cliquez ici Ou dans la rubrique “Mes rĂ©servations” sous le bouton “Compte” lorsque vous ĂȘtes connectĂ© au site.
“TEST” is the old value of #_FIELD{4}, it should be “Sasha – Brutus”
Mvg
Best regardsWed 7 Sep 2022 at 18:52 #64607FrankyKeymasterHum …. weird … where is the “TEST” value coming from? I use custo fields for a dog club too btw (and also in Belgium đ ), never encountered this.
Wed 7 Sep 2022 at 19:06 #64608FrankyKeymasterBtw: I tried to reproduce that here, and it all works as expected. Since the form data is submitted via ajax call, it would be weird that the original data is used.
Can you reproduce that reliably? Is it a browser problem? Any caching plugin on the site?Wed 7 Sep 2022 at 19:10 #64609AnonymousInactiveYou’re welcome whenever you want we are in Brussels / Evere
“TEST” was the old value of the #_FIELD{4}, so after the booking the value is changed to “Sasha â Brutus”, but not in the mail, may be is the mail sent before the DB changes.
If i try now the book at a new event, the prefilled value of #_FIELD{4} is well “Sasha â Brutus”
Wed 7 Sep 2022 at 19:19 #64610AnonymousInactiveI tried a new booking.
Changed the prefilled value (Sasha â Brutus) to “Sasha â Brutus TESTMAIL”
The booking value is correct but the mail i received is the old value
I don’t use mail queueI use WP_ROCKET but i excluded the /events/(*)
Wed 7 Sep 2022 at 19:27 #64611AnonymousInactiveJust tried with WP_ROCKET disabled and mail queue of 5 min, same problem
Wed 7 Sep 2022 at 19:33 #64612FrankyKeymasterCan you create a test event and send that url to me? You can set the event status to “hidden” so it won’t show in your public event lists.
And also: a temporary admin account might be useful too, that speeds up possible debugging.Wed 7 Sep 2022 at 19:40 #64613FrankyKeymasterI’m a little bit unclear also about the “prefilled value”. How do you do change the data of that field? Because I’m thinking you’re doing things in the backend, not via a frontend rsvp form, is that possible?
Wed 7 Sep 2022 at 20:26 #64614AnonymousInactiveData is changed from the RSVP form front-end.
I can create you the admin account and the hidden event later I’m at the club for the moment.
Thu 8 Sep 2022 at 22:13 #64615FrankyKeymasterNo example, no further feedback and I can’t reproduce it: so moving this to “generic”.
Thu 8 Sep 2022 at 22:23 #64616AnonymousInactiveSorry Franky, very busy day đ
I’m creating the access now
Thu 8 Sep 2022 at 23:52 #64617FrankyKeymasterOk, found the problem: due to caching of people answers (and the custom field being a person field), the cached answer was used for mail.
This fixes it (I added some extra cache deletes and small other things, but the only file needing updating in your case is eme_rsvp.php): https://plugins.trac.wordpress.org/changeset/2782198/#file3But, while on topic: you should use a field of purpose “rsvp” for booking info, since people can be present with different dogs. Now always the info gets overwritten and per booking it would be more relevant to that booking. But of course doing a person-field allows to retain the old value the next time someone logs in and books (if login is required), so it all depends on what you want đ
Fri 9 Sep 2022 at 08:16 #64618AnonymousInactiveWonderful Franky !
I tried with a RSVP field at first but as you mentioned the user had to put again the dog’s name.
As 99% of the members will come with the same dog, i prefered to put it at person level. So it is prefilled each time, most of the person are quiet old or not comfortable with internet so i tried to make it “Boma proof”. In my case EME is only use as a Doodle like plugin. Only to prevent too much person at the same lesson. Our club grow from 100 members to 200+ during the covid period as other club closed in Brussel.
Thanks again
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.