Support

Home Forums Event Espresso Premium How do I select a different Thank You page for an event

How do I select a different Thank You page for an event

Posted: August 31, 2017 at 2:38 pm


Hanna Bernard

August 31, 2017 at 2:38 pm

Hi,
I have several events. When someone registers for an event, it goes to the Thank You page. I need a different Thank You page for one of my events. I have the page set up but how do I “tell” the event registration to go to a different Thank You page?


Tony

  • Support Staff

August 31, 2017 at 3:11 pm

Hi there,

You can not setup specific thank you pages for individual events, there should only be a single page on your site with the [ESPRESSO_THANK_YOU] shortcode and that page selected within Event Espresso -> General Settings -> Critical Pages -> Thank you page.

What details are you looking to change? You may be able to do what you need via the hooks we have built into EE.

  • This reply was modified 2 years, 2 months ago by  Tony. Reason: missing not


Hanna Bernard

August 31, 2017 at 3:19 pm

Thanks but that’s not what I’m looking for. Unless I understand you wrong. I need a different Thank You page for just ONE of my SEVERAL events. All other events are still using the original Thank You page.

Let me know if this doesn’t make sense. What you are suggesting below only changes which Thank You page to select for ALL events. Not for just ONE event.


Tony

  • Support Staff

August 31, 2017 at 3:22 pm

My apologies for the confusion, there was a typo in my reply in the best possible place it could be (now fixed).

You can not set specific thank you pages for events, the same page is used for all events.

Depending on which details you want to change you may be able to do so using the hooks within EE, if you let me know what you looking to change on the page I can advise further.


Hanna Bernard

August 31, 2017 at 4:59 pm

Hm, that’s not good. I have a specific questionnaire that needs to be responded to on the Thank You page for one specific event. The other events we have have nothing to do with that questionnaire.


Tony

  • Support Staff

September 1, 2017 at 4:16 am

How are you wanting to output the questionnaire and in which section?

You can use the hooks available within EE to output details on the page, for example here is a gist that adds a ‘Download your tickets’ link to the thank you page:

https://gist.github.com/Pebblo/525890c30baa7e207e4f

You can use something similar to output either a link to a questionnaire or even the questionnaire itself is using a form type plugin. As you have the transaction/registrations on that page you can get the event object using our model system.

Does the questionnaire need to be linked to the registration? If so how are you planning to link the questionnaire to the registration?

Again, I can provide more details if you can provide more details on what your trying to do and where on the thank you page.


Hanna Bernard

September 1, 2017 at 9:48 am

So I can put the questionnaire directly on the event page? I tried that but was told EE can’t import a list for a drop-down selector. And since I need over 100 options on my drop-down, I had to set it up with Ninja Forms instead.

I kind of didn’t want them to answer questions until they’ve bought tickets. Hence putting it on the Thank You page. But if that’s not an option…


Josh

  • Support Staff

September 1, 2017 at 10:27 am

That’s totally an option to add the form to the Thank You page for only that one event. Here’s a code snippet that shows an example how:

function ee_add_form_to_thank_you_page( $registration ) {
  $event_id = 123; // replace 123 with your event ID
  if ( $registration instanceof EE_Registration ) {
    if( $registration->event()->ID() == $event_id ) {
  ?>
    <tr>
      <td colspan="3">
        <div class="questionnaire">
          <?php // Ninja Form code goes here  ?>
        </div>
      </td>
    </tr>
    <?php
    }
  }
}
add_action(
  'AHEE__thank_you_page_registration_details_template__after_registration_table_row', 
  'ee_add_form_to_thank_you_page', 
  10, 
  1 
);

The support post ‘How do I select a different Thank You page for an event’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 years, 2 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!