Plugin Author
YOP
(@yourownprogrammer)
Hi Marjorie,
Please give more details on your support request so we may assist.
Regards,
YOP Team
Hi,
What field i can add to the notification body to have the name or the mail of the survey respondent?
<p>Une nouvelle réponse au sondage a été enregistré le [VOTE_DATE] pour le sondage [POLL_NAME]</p>
<p>Détail de la réponse:</p>
<p><b>Question:</b> [QUESTION]</p>
<p><b>Réponse:</b>
[ANSWERS]</p>
<p><b>Champs personnalisés:</b>
[CUSTOM_FIELDS]</p>
<p><b>Identifiant du vote:</b>
[VOTE_ID]</p>
Regards,
Marjorie
Plugin Author
YOP
(@yourownprogrammer)
Hi Marjorie,
In the email notification body add the tag [EMAIL_USER].
Next, edit yop_poll_model.php and in register_vote function, after
$body = str_replace( '[POLL_NAME]', $this->poll['name'], $poll_options['email_notifications_body'] );
add
$user_info = get_userdata($voter['user_id']);
$body = str_replace( '[EMAIL_USER]', $user_info->user_login , $body );
Let us know if you need more help.
Best wishes,
YOP Team