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)
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.
Support forum for Event Espresso 3 and Event Espresso 4.