Support

Home Forums Event Espresso Premium Different Thank You page for each event?

Different Thank You page for each event?

Posted: August 8, 2012 at 1:10 pm

Viewing 6 reply threads


jsullivan

August 8, 2012 at 1:10 pm

I would like to create a custom Thank You page for each event which will include additional instructions and information for each individual event.

  • This topic was modified 12 years, 1 month ago by Seth Shoultes. Reason: moving to premium category


Josh

  • Support Staff

August 8, 2012 at 2:09 pm

There are two templates that handle what gets displayed on the Thank you page:

The payment_overview.php and payment_page.php. It depends on the gateway or whether it’s a free event or not which is used.

The shortcode I recommend to use to add this extra information is the ee_meta shortcode. This will allow entering additional information to be entered for each event in the event meta box found in the event editor.

To add support for the ee_meta shortcode to the payment_overview.php template, add this declaration to the top of the template file:

<?php global $event_meta;
 $event_meta = event_espresso_get_event_meta($event_id); ?>


jsullivan

August 8, 2012 at 2:19 pm

Perfect! Thank you!


jsullivan

August 9, 2012 at 10:37 pm

That works except when we paste HTML into the Meta Value Field it breaks into multiple fields and doesn’t display properly.


Josh

  • Support Staff

August 10, 2012 at 11:28 am

What HTML tags are breaking these into different fields?


jsullivan

August 10, 2012 at 12:17 pm

Hi Josh, we’re actually still trying to find a way to get all of our providers paid through Paypal, so I’m trying to paste the Paypal button code in there. It’s a form code. I’m a parent volunteer running an after school enrichment program at an elementary school. I’ve got 15 different providers and they all have to be paid separately. There is no way for us to run it all through one Paypal account. I was hoping to get their Paypal buttons in there this way. Any help you can offer would be greatly appreciated, I’ve got to have this working by Monday. 🙁


Sidney Harrell

August 11, 2012 at 1:42 am

It’s a bit of a hack, since you have to know the event_ids ahead of time (you can get them from the event overview admin page), but you could try something like:

<?php switch ($event_id) {
   case '10':   //assuming your first event id is 10
      { ?>
<form action...
//the rest of the button code for event id = 10
</form>
<?php  }
      break;
   case '11': //for event_id = 11
      { ?>
   <form action...
   // the rest of the button code for event_id=11
   </form>
   <?php  }
          break;

etc…
You can put that in the thank you page template and it will put the different button on for each event. You can still use the event meta tag for the different instructions.

Viewing 6 reply threads

The support post ‘Different Thank You page for each 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.

Event Espresso