Support

Home Forums Event Espresso Premium Thank you page message

Thank you page message

Posted: April 24, 2019 at 9:39 am

Viewing 1 reply thread


Antenna Digital

April 24, 2019 at 9:39 am

I’m using this technique: https://eventespresso.com/wiki/add-course-curriculum-events-using-advanced-custom-fields/

To add a message and button to the thank you page for events where payment has been completed (ie: the Credit Card transaction has been approved)

It’s working great, but the message and button are showing up for EACH registrant. Is it possible to make this only show once? Is there a different hook/filter I should be using? (Currently using ee_course_materials_section_thank_you_page)

Don’t know if this will make through the editor but here’s a screenshot
http://prntscr.com/ngbu91

Thanks
Dave


Josh

  • Support Staff

April 24, 2019 at 9:54 am

Hi Dave,

What you can do is add something to check if it’s the Primary Registrant, and if it’s not the primary registrant, bail.

Right after this:
if ( $registration instanceof EE_Registration ) {
you can add this:

if (! $registration->is_primary_registrant()) {
    return;
}

This will make the custom message + button display only once.

Viewing 1 reply thread

The support post ‘Thank you page message’ 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