Support

Home Forums Event Espresso Premium [ESPRESSO_CHECKOUT] need to show the email address

[ESPRESSO_CHECKOUT] need to show the email address

Posted: October 6, 2022 at 6:27 am

Viewing 7 reply threads


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

  • Support Staff

October 6, 2022 at 9:22 am

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

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

  • Support Staff

October 7, 2022 at 5:37 am

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

This reply has been marked as private.


Tony

  • Support Staff

October 7, 2022 at 5:54 am

This reply has been marked as private.


Michaela

October 7, 2022 at 6:59 am

Hi,
Yes, that would be an Option.


Tony

  • Support Staff

October 7, 2022 at 8:53 am

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() . ')' 
    );
}
Viewing 7 reply threads

The support post ‘[ESPRESSO_CHECKOUT] need to show the email address’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso