Michaela
October 6, 2022 at 6:27 am
Hi,
we like to show the email address of the costumer at the [ESPRESSO_CHECKOUT] site. Is this possible? Thank you
Tony
October 6, 2022 at 9:22 am
Add New Note to this Reply
Hi there,
Possibly, I’ll check into this to see if there is a hook available.
Where exactly are you looking to include the above on the page? Can you add a screenshot?
https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots
Also, may I ask what the use case for adding the email to that page is, please?
Michaela
October 7, 2022 at 5:16 am
Add New Note to this Reply
Helllo
I need to show (print on the screen) the coustumer email to count it for my converstaion on google.
On the site [ESPRESSO_CHECKOUT] is not shown any emailadress.
Thank you
Tony
October 7, 2022 at 5:37 am
Add New Note to this Reply
Where exactly are you looking to include the above on the page? Can you add a screenshot?
https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots
Michaela
October 7, 2022 at 5:47 am
Add New Note to this Reply
This reply has been marked as private.
Tony
October 7, 2022 at 5:54 am
Add New Note to this Reply
This reply has been marked as private.
Michaela
October 7, 2022 at 6:59 am
Add New Note to this Reply
Hi,
Yes, that would be an Option.
Tony
October 7, 2022 at 8:53 am
Add New Note to this Reply
OK, so to do that you can copy the template file used within Event Espresso into your theme (preferably a child theme).
The template used is:
\event-espresso-core-reg\modules\thank_you_page\templates\thank-you-page-registration-details.template.php
Copy that to the root directory of your theme and edit the the file there, line 62-64 should be something like this:
if ($registration->attendee() instanceof EE_Attendee) {
echo esc_html($registration->attendee()->full_name(true));
}
Change that to:
if ($registration->attendee() instanceof EE_Attendee) {
echo esc_html(
$registration->attendee()->full_name(true) .
' (' . $registration->attendee()->email() . ')'
);
}